Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Input a list of positive numbers (terminated by 0) into an array, find the mean (average) of the numbers in the array, and outp...Asked by marian
Input a list of positive numbers ( terminated by 0) into an array, find the mean ( average) of the numbers in the array, and output the result. Use a subprogram to input the numbers, a function to find the mean, and a sub-program to output the result.
Answers
Answered by
Steve
to find the average, just add up all the numbers and divide by how many there are.
That means you have to count them as you read them.
That means you have to count them as you read them.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.