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

النسخة 8الرقم المعياري الدولي: 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

النسخة 8الرقم المعياري الدولي: 978-1285867410
تمرين 23
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 == "N" || userAnswer == "n")
What would a user enter to cause this test to be true?
التوضيح
موثّق
like image
like image

while(userAnswer == "N" || userAnswer ==...

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