Question: Write a program that uses a while loop statement to perform the following task: You are going to write a guessing game program. The program
Write a program that uses a while loop statement to perform the following task:
You are going to write a guessing game program. The program will ask the user to guess a number between 1 and 10. The input will be compared to the secret number, which is 5. If the user guessed the wrong number the program will output sorry, guess again and ask the user to enter another number. If the user guesses correctly then the program will output thats correct! and stop
The language is C++ and we're using the Dev-C++ application.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
