Question: Goal: Use cin to capture a value and store it in a variable. Assignment: A survey is being held, and users must input their age

Goal: Use cin to capture a value and store it in a variable.
Assignment: A survey is being held, and users must input their age to later perform statistical comparisons based on age groups. To aid in this job, write the code necessary to:
Declare an int variable called userAge
Display the message "Please insert your age before continuing: " to the user (be mindful of the space after the colon)
Capture their input in the userAge variable.
Note: Be mindful of capital letters, spaces, and punctuation in the message.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!