Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started