5-20 C++ Guess The Number Game - Using Loops and If Statements
Starting With C++: From Control Structures to Objects
Programming Challenge 5-20: Guessing The Number Game Using Loops and Control Statements
Write a program that generates a random number and asks the user to guess what the number is. If the user's guess is higher than the random number, the program should display "Too high, try again". If it is lower, it should display "Too low, try again". The program should use a loop that repeats until the user correctly guesses the random number.
Learning to code? Follow my C++ tutorials for beginners. I do a lot of C++ programming challenges and C++ projects as part of my homework - every day!
If you are learning to program, nothing beats solving real programming exercises and coding challenges.
So don't forget to subscribe, as I release new programming videos every day!
DOWNLOAD SOURCE CODE: http://www.codinghomework.com/?p=78
