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.
A more specific question would also be helpful. We don't generally just write people's code for them, especially if it's homework, but if you have code that you think should work and doesn't and need help working out why, or have a specific concept that doesn't make sense, then help is much easier to offer.
A forum community dedicated to tech experts and enthusiasts. Come join the discussion about articles, computer security, Mac, Microsoft, Linux, hardware, networking, gaming, reviews, accessories, and more!