Waiting for a user input.
in
Programming Questions
•
3 years ago
How can I go about waiting for a user input...I would like to stop execution of the program until an acceptable condition occurs (if the acceptable condition does not occur repeat the function until it is acceptable).
Basically, I would like a do-while loop and pause until the key 'y' is pressed (to accept the value) or 'n' is pressed, to repeat the do-while loop.
1