Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. while(exit == false) {
  2.     do {
  3.         //your game questions and guessing the number here
  4.         if(guess == answer) {
  5.             break;
  6.         }
  7.     } while(iterations < number_of_tries)
  8.    
  9.     //ask them if they want to play again here
  10.     //if they dont, set exit to true
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement