Question: Create a random number between 1 and 1 0 . Prompt a user to guess the number. If the user guesses incorrectly, display the number
Create a random number between and
Prompt a user to guess the number.
If the user guesses incorrectly, display the number of times they guessed incorrectly.
If the user guesses the number, display "You won on the # try", where # is the number of guesses they had.
The program must run until the user guesses correctly.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
