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

PROGRAMMING:Count the number of people with 80 to 90 points

Luz5年前 (2021-05-10)题库502
Enter a number of student grades, ending with a negative number. Calculate the average score of all students and count the number of students whose score is between 80 and 90 (excluding 90).
###Input format:
Enter several percentile real scores on one line with a space between the data. Enter a negative number to end the input.
###Output format:
Output the results in the order of "Ave = average score, n = number of people" in one line, where the average score requires two decimal places, and the number of people is a positive integer.
###Input example:
```in
58 89 80 55 -5
```
###Output example:
```out
ave=70.50,n=2
```






answer:If there is no answer, please comment