Write a C program that plays the the game of \" guess thenumber\" as follows: Yo
ID: 3615176 • Letter: W
Question
Write a C program that plays the the game of " guess thenumber" as follows: Your program chooses the number to be guessedby selecting an integer at random in the range 1 to 1000. Theprogram then types:I have a number between 1 and 1000. Can you guess my number? Please type your first guess. The player then types the first guess. The program respondswith one of the following. 1. Excellent! You guessed the number! 2. Too low, try again. 3. Too high, try again. If the player's guess is incorrect, your program should loopuntil the player finally gets the number right.
I have a number between 1 and 1000. Can you guess my number? Please type your first guess. The player then types the first guess. The program respondswith one of the following. 1. Excellent! You guessed the number! 2. Too low, try again. 3. Too high, try again. If the player's guess is incorrect, your program should loopuntil the player finally gets the number right.