Question: Write a program that calculates and prints the average of several integers ( you don't know how many will be entered ) . Assume the

Write a program that calculates and prints the average of several integers (you don't know how many will be entered). Assume the last value read with scanf is the sentinel 9999(this tells you that you have reached the end of the list of numbers). A typical input sequence might be 10811799999 indicated that the average of all the values preceding 9999 is to be calculated. (9999 should not be included in the average)
c programming

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 Programming Questions!