Guest User

Untitled

a guest
Nov 20th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. while ((userInput != "r") || (userInput != "p" || (userInput != "R") || (userInput!= "P")) {
  2. cout << "Please enter a valid option" << endl;
  3. cin >> userInput;
  4. }
  5.  
  6. while (userInput != "r") {
  7. cout << "Please enter a valid option" << endl;
  8. cin >> userInput;
  9. }
Add Comment
Please, Sign In to add comment