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
Get step-by-step solutions from verified subject matter experts
