Question: Hello, I need help solving this Lab simulation, It usesDo-while loop to prompt user input statements and I am very new at coding on so
Hello, I need help solving this Lab simulation, It usesDo-while loop to prompt user input statements and I am very new at coding on so I need help solving it. It is very difficult. It is very confusing since the there are multiple inputs and on can only code it once.
a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually less than 100. End each prompt with a newline. Ex: For the user input 123, 395, 25, the expected output is:
Enter a number (<100): Enter a number (<100): Enter a number (<100): Your number < 100 is: 25
#include
using namespace std;
int main() {
int userInput;
/* Your solution goes here*/
cout << "Your number < 100 is: " << userInput << endl;
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
