Quiz: Ask the User

Test your skills on taking user input with cin and getline().

In the previous lesson, you learned how to make your program interactive using cin.
You took input from the keyboard, stored it in variables, and combined different types of input to personalize your program’s behavior.

Let’s go through a quick quiz to make sure you’ve got the hang of user input.

Get hands-on with 1400+ tech skills courses.