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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started