Write a C program to generate and guess random number

By | 03.12.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.


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


0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments