CHALLENGE ACTIVITY 1.6.1: Read user input and print to output. Write a statement that reads a user's
Question:
CHALLENGE ACTIVITY 1.6.1: Read user input and print to output. Write a statement that reads a user's input integer into the declared variable, and a second statement that prints the integer followed by a newline. 1 #include 2 using namespace std; 1 test passed mtino int main() { int userNum = 0; All tests passed 7 9 10 } /* Your solution goes here */ returne;
CHALLENGE ACTIVITY 1.6.2: Read multiple user inputs. Write two statements to read values for birth Month and birth Year, separated by a space, then write a statement to output the month, a slash, and the year. End with newline. Ex: The output is shown for user input of: 1 2000 1/2000 1 #include 2 using namespace std; 1 test passed int main() { int birthMonth = 0; int birthYear = 0; All tests passed /* Your solution goes here */ 10 11 } return 0;