Write a C program to generate and guess random number

By | December 3, 2016

C program to generate and guess random number


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 : :



Also Read : : Write a C program to implement a TIC TAC TOE game


OUTPUT : :


Leave a Reply