#K60497. Calculate Average Feedback Score
Calculate Average Feedback Score
Calculate Average Feedback Score
You are given a list of feedback scores for a product. Your task is to compute the average of these scores and round the result to two decimal places.
If the list is empty, the output should be 0.0
.
The average is computed as:
\(\text{Average} = \frac{\sum_{i=1}^{n} a_i}{n}\)
where \(a_i\) are the feedback scores and \(n\) is the number of scores.
Input is taken from stdin and output should be printed to stdout.
inputFormat
The first line of input contains an integer \(N\) representing the number of feedback scores. If \(N > 0\), the second line contains \(N\) space-separated integers which are the feedback scores. If \(N = 0\), no further input is provided.
outputFormat
Output a single line containing the average feedback score rounded to two decimal places.
## sample5
4 5 3 2 5
3.80