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

PROGRAMMING:Calculate the average score and output the student's score below the average score

Luz5年前 (2021-05-10)题库521
Input the scores of some (< 20) students from the keyboard, calculate the average score, output the students' scores lower than the average score, and end the input with negative number.
###Input format:
Enter the real scores of several (< 20) students in a row, end the input with negative numbers, and separate the data with a space.
###Output format:
Output the average score in the order of "Ave = average score (enter)" in one line. The average score retains 2 decimal places, and there is no column width control.
In the next line, output the student's score lower than the average. The student's score retains 1 decimal place and the column width is 6 columns.
###Input example:
```in
85 65 74 -1
```
###Output example:
```out
ave=74.67
65.0 74.0
```






answer:If there is no answer, please comment