-->
当前位置:首页 > 题库

PROGRAMMING:Age and mean

Luz5年前 (2021-05-10)题库359
######Task description
```
Programming input n people's age, output their age sum and average age.
```
######Input format:
```
N + 1 integers separated by spaces. The first number represents the number of people n, and the next n integers represent the age of n people. All integers are positive integers no more than 120.
```
######Output format:
```
Sum = age and age
Average = average age (2 decimal places reserved)
```
######Input example:
```in
5 50 20 18 35 100
```
######Output example:
```out
Sum = 223
Average = 44.60
```







answer:If there is no answer, please comment