Read an integer N. This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Finally, calculate the average of all elements and display it.
Hints:
for loop to read the data and store it in the array.for loop to add up all the elements.An integer N, followed by N integers, one per line.
Print the average. Without decimals if it is an exact integer, with one decimal if needed.
Input:
4
5
10
15
20
Output:
12