Question: Write a program that allows the user to guess a number between 1 and 5 0 . The program should generate a random number and
Write a program that allows the user to guess a number between and The program should generate a random number and ask the user to guess the number. If the user's guess is lower than random number, the program displays "Too low. Guess again." If the user's guess is higher than random number, the program displays "Too high. Guess again." Use a loop to keep asking for another number, until the user guesses the random number correctly. The program also should keep a count of the number of guesses.
Include a loop that lets the user repeat the program until the user says she or he is done.
I would like this in C please.
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
