Answer:
The following do while loop is given below
do
{
cout << "Enter a number (<100): "; // print the message
cin >> userInput; // Read the number by user
}while(userInput>100); // checking the condition
Explanation:
Following are the description of above statement
- In the above do-while loop print the message "Enter a number (<100): " by using the cout function .The cout function in C++ is used to display the number or message in the console window.
- Read the Number by user in "userInput" variable by using cin function.
- Finally check the condition by greater than 100.This loop will continue if the user reads the number greater then 100.If the user enters the number less then 100 the execution of the loop will stop.