expand icon
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

Edition 8ISBN: 978-1285867410
book C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith cover

C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith

Edition 8ISBN: 978-1285867410
Exercise 26
Validating User Input
In this exercise, you use what you have learned about validating user input to answer Questions.
You plan to use the following statement in a C++ program to validate user input:
while(userAnswer 1 || userAnswer 10)
What would a user enter to cause this test to be true?
Explanation
Verified
like image
like image

while(userAnswer 1 || userAnswer 10 )
Us...

close menu
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
cross icon