Question: C program: Write a program that calculates and prints some statistics (Count, total,average,minimum and maximum) of several positive integers (each value is less than 1000).
C program: Write a program that calculates and prints some statistics (Count, total,average,minimum and maximum) of several positive integers (each value is less than 1000). Your program should read only one value each time scanf is executed and assume the last value read with scanf is the sentinel 999.
Sample execution
Enter a number (999 to end) : 4
Enter a number (999 to end) : 8
Enter a number (999 to end) : 12
Enter a number (999 to end) : 1
Enter a number (999 to end) : 999
Count : 4
Total : 25
Average is : 6.25
Minimum: 1
Maximum : 12
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
