subject
Engineering, 06.11.2019 05:31 sharpeyennifer

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
c++

#include
using namespace std;

int main() {
int userinput = 0;

do
cout < < "your number < 100 is: " < < userinput < < endl;

return 0;
}

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, cowgyrlup124
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 03.07.2019 14:10, makaylashrout77
Amass of 1.5 kg of air at 120 kpa and 24°c is contained in a gas-tight, frictionless piston-cylinder device. the air is now compressed to a final pressure of 720 kpa. during the process, heat is transferred from the air such that the temperature inside the cylinder remains constant. calculate the boundary work input during this process.
Answers: 2
image
Engineering, 04.07.2019 18:20, DroctorWellsfan
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
You know the right answer?
Write a do-while loop that continues to prompt a user to enter a number less than 100, until the ent...

Questions in other subjects:

Konu
Mathematics, 17.05.2021 19:10
Konu
Mathematics, 17.05.2021 19:10
Konu
Computers and Technology, 17.05.2021 19:10