Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Program Write a do-while loop that continues to prompt a user to enter a number less than 100, until the entered number is actually

C++ Program

Write 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Under what circumstances is polygraph testing of employees legal?

Answered: 1 week ago