Question: Write a program using c compiler to find the sum, average, smallest and largest number of a series of numbers entered ( use these numbers

Write a program using c compiler to find the sum, average, smallest and largest number of a series of
numbers entered (use these numbers as your test data):
33,10,40,30,22,29,50,69,40,67
where the output of the program is as below:
Program to find the largest number
Please enter a number (type -999 to stop) : 33
Please enter a number (type -999 to stop) : 10
Please enter a number (type -999 to stop) : 40
Please enter a number (type -999 to stop) : 30
Please enter a number (type -999 to stop) : 22
Please enter a number (type -999 to stop) : 29
Please enter a number (type -999 to stop) : 50
Please enter a number (type -999 to stop) : 69
Please enter a number (type -999 to stop) : 40
Please enter a number (type -999 to stop) : 67
Please enter a number (type -999 to stop) : -999
The sum of numbers is 390
The average number is 39
The smallest number is 10
The largest number is 69
Thank you

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!