Write a C program to generate and guess random number.This program will read a random number and ask to user to guess it. This is just like a small game program in which user has to guess correct number which is generated randomly.
Here program will give 7 attempts to guess the number, on each attempt program will inform that entered number is less than or greater than the random generated number so that user can easily guess that particular number.
Below is the source code of the C program to guess random number which is successfully compiled and run on the windows system.The Output of the program is shown below.
SOURCE : :
OUTPUT : :
need an explanation for this answer? contact us directly to get an explanation for this answer