daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top