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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!