Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 537 Bytes

File metadata and controls

33 lines (22 loc) · 537 Bytes

Problem Description

Given integers, compute their average, rounded to three decimal places.

Input Format

The first line contains an integer, N. Each of the following N lines contains a single integer.

Output Format

Display the average of the N integers, rounded off to three decimal places.

Constraints

  • 1 <= N <= 500
  • -10000 <= x <= 10000 (x refers to elements of the list of integers for which the average is to be computed)

Sample Input

4
1
2
9
8

Sample Output

5.000