Question: In C, create a program that asks the user consecutively to enter up to 20 numbers. i.e.: Enter a number: 5 Enter a number: -7

In C, create a program that asks the user consecutively to enter up to 20 numbers.

i.e.:

"Enter a number: 5

Enter a number: -7

. . .

Enter a number: 0"

Store these numbers in an array of size 20. Find the sequence sum and average of this array. When 0 is entered, the program should stop taking in values and compute the sum and average of only what is entered until then.

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!