C Practical and Assignment Programs – Guessing Game Program
In this video we will be designing a guessing game. In which the user has to guess the number. The full description of the question is provided below. This is the first time we will be doing video game program. This is very basic game program it is command line based. Now this program is written in C programming language but will work in C++. Fell free to provide you suggestion.
Question: Write a program that allows a user to play a guessing game. Pick a random number in between 1 and 100, and then prompt the user for a guess. Based on their guess, tell them that their guess is too high, too low, or correct. If the guess is not correct, re-prompt the user for a new guess. Continue doing so until the user has properly picked the number.
printf("Enter a Number from 1 to 100n");
printf("Number guessed is lown");