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

PROGRAMMING:Count the average score and the number of failed students

Luz5年前 (2021-05-10)题库399
This requires the preparation of procedures to calculate the average score of students, and statistics failed (score below 60 points) number. Ensure that the input and output are within the double precision range.
###Input format:
Enter the non negative integer 'n' in the first line, that is, the number of students. The second line gives' n 'non negative real numbers, that is, the' n 'students' scores, separated by spaces.
###Output format:
Average = average score
Count = number of failed students
The average value is accurate to two decimal places, and there is a space around the equal sign.
###Input sample 1:
```in
four
60 54 95 73
```
###Output sample 1:
```out
average = 70.50
count = 1
```
###Input sample 2:
```in
0
```
###Output sample 2:
```out
average = 0.00
count = 0
```







answer:If there is no answer, please comment