#B2056. Sum and Average Calculation
Sum and Average Calculation
Sum and Average Calculation
Given n integers where \(1 \le n \le 10000\), compute their sum and their mean.
The input consists of an integer \(n\), followed by \(n\) integers. The output should display the sum and the average separated by a space. The average should be computed using floating point division.
inputFormat
The first line contains the integer \(n\). The second line contains \(n\) space-separated integers.
outputFormat
Output two values: the sum of the \(n\) integers and their average (mean), separated by a space.
sample
1
10
10 10.0