Write a pseudocode to Input a list of positive numbers(terminated by 0) into an array find the mean (average) of thenumbers in the array and output the results. Use a subprogram toinput the numbers a function to find the mean and a subprogram tooutput the results