Design a while loop lets the user enter a number


Discuss the below:

Q1: Design a While Loop that lets the user enter a number. The number should be multiplied by 10, and the result stored in a variable named product. The loop should iterate as long as product contains a value less than 100.

Q2: Design a For loop that calculates the total of the following series of numbers: 1/30+2/29+3/28+...30/1

Q3: Design a program with a loop that lets the user enter a series of numbers. Then user should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Design a while loop lets the user enter a number
Reference No:- TGS01937466

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)