Question: Create a random number between 1 - 1 0 0 . Do NOT tell the user what number it is . Ask the user to

Create a random number between 1-100. Do NOT tell the user what number it is.
Ask the user to guess the number
Continue looping until the user guesses the number correctly.
In each loop, Tell the user if the guess was too HIGH, too LOW or they guess it CORRECTLY
Count the number of times it took the user to guess the secret number
Output the number of guesses required to guess their number at end the game.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!