Question: Write a program to play guess my number. The program should generate a random number between 0 and 100 and then prompt the user to

Write a program to play "guess my number". The program should generate a random number between 0 and 100 and then prompt the user to guess the number. If the user guesses incorrectly the program gives the user a hint using the words 'higher' or 'lower' (as shown in the sample output). It prints a message 'Yes - it is' if the guessed number is same as the random number generated. ANSWER IN C LANGUAGE.

====================== Sample Input / Output: ====================== ------------------------------------- Sample 1: User incorrectly guesses 59 ------------------------------------- Guess a number between 0 and 100 and enter it here: 59 You guessed it wrong :( You should have gone higher.

------------------------------------- Sample 2: User correctly guesses 43 ------------------------------------- Guess a number between 0 and 100 and enter it here: 43 Yes - that is correct :)

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 Databases Questions!