Question: Write a program that plays a guessing game with the user. It should pick a random integer from 1 to 1 0 0 , then

Write a program that plays a guessing game with the user. It
should pick a random integer from 1 to 100, then allow the user
to guess repeatedly until they get it right or until theyve
used 10 guesses. If their guess is wrong, output higher or
lower. Once they get it right, congratulate them, report how
many guesses they used and end the program.

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!