Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that continually prompts the user for integer input. Based on the integer that is entered the program must do one of the
- Write a program that continually prompts the user for integer input. Based on the integer that is entered the program must do one of the following
- If the integer is 1, print hello world and ask again
- If the integer is 2, print hello, from [your name] and ask again
- If the integer is 3, print whats up world and ask again
- Else print goodbye world and then exit.
Things to remember: a do while loop allows the body of the loop be run at least once every time. C++
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