1 ask the user for a positive number between 1 and 23 only


Design and write a modular C program to perform the following tasks:

1. Ask the user for a positive number between 1 and 23, only accept those numbers

2. Maintain a running sum of the numbers

3. Continue asking for numbers while the sum of the numbers is less than 98

4. Keep track of the largest & smallest number entered

5. When the sum of the numbers is more than 98 the program should stop asking for number input

6. Display the sum of the numbers and the largest and smallest number entered

7. Have the program continue running with new input until told to stop (allow for a new set of numbers to be entered)

Solution Preview :

Prepared by a verified Expert
Business Economics: 1 ask the user for a positive number between 1 and 23 only
Reference No:- TGS02222820

Now Priced at $35 (50% Discount)

Recommended (98%)

Rated (4.3/5)