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

PROGRAMMING:The problem of finding the maximum and minimum of the average value of N numbers.

Luz5年前 (2021-05-10)题库507
Input n (3 < = n < = 20) integers from the keyboard, and calculate the average value of these n integers and the maximum and minimum number among them.
###Input format:
Enter an integer n between 3 and 20 in the first line, and N integers in the second line, with a space between them to separate the data.
###Output format:
Output average value (2 decimal places reserved), maximum value, minimum value, separated by comma, and finally wrapped.
###Input example:
```in
ten
1 2 3 4 5 6 7 8 9 10
```
###Output example:
```out
5.50,10,1
```







answer:If there is no answer, please comment