The company has
nemployees. Each employee gets a salary. The company is interested in their expenses and would like to understand what’s the average amount they’re spending per employee. They ask you to write a program that would provide them with that data.
It is guaranteed that the number of employees is
5 ≤ n ≤ 8.
The first line of the input contains the number of employees
n. The next
nlines contain their salaries.
The program should print a single number - the average of the salaries.
5 100 200 150 180 400
You can read 5 inputs and then use an
ifstatement to determine if reading more input is necessary and
appendit if more lines are present.