Generate a random number between 0 and 100.
By using Randomize, and RandomRange: Grab a randomly generated number, and tell the user whether the real number is higher, lower, or correct. (“100 is too high” or “50 is too low”)
Continue to allow the user to guess until they get the correct number. Once they have the correct value, ask them if they would like to play again. If yes, clear the display and start over. If no, exit the program.
Having hard time understanding how to store the number, and then ask user to input a new number each time.
Aucun commentaire:
Enregistrer un commentaire