Question: Create a C program with the following requirements. Create a random number between 1 0 and 2 0 . Ask a user to guess a

Create a C program with the following requirements.
Create a random number between 10 and 20.
Ask a user to guess a number between 10 and 20.
Allow the user to make three guesses.
If the user's guess is lower than the number or higher than the number, let them know by displaying that information after each guess.
Ask the user if they would like to keep playing until they say no. Tell them to enter 1 for yes and 2 for no.
Display the number of times the user has played 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!