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
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;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started