Positive Numbers

Write a pseudocode to 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 results. Use a subprogram to input the numbers, a function to find the mean and a subprogram to output the results