Question: Write a program which asks the user to input the size of a list. Then ask the user to input an integer for each element
Write a program which asks the user to input the size of a list. Then ask the user to input an integer for each element of the list, and output the arithmetic mean of the list (truncated if it is a decimal). Recall: the arithmetic mean of a set of numbers is the sum of all the numbers divided by the number of numbers. How large a list do you want? 3 Enter in element 0 Enter in element 1: Enter in element 2 2 7 The arithmetic mean of these numbers is 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
