-->
当前位置:首页 > Eng > 正文内容

编程题:student score

Luz3年前 (2022-11-29)Eng492
Input a batch of student scores, calculate the average score, and count the number of failed students (score <60).

### Input Specification:

Enter a student score in each line, with a negative number as the sign of the end of the input.

### Output Specification:

Output the average score (keep 2 decimal places) and the number of failed students in the specified format. If tNo studentsre is no student data, output No students

### Sample Input #1:
in
90
78
56
34
55
68
-1


### Sample Output #1:
out
average=63.50 fail=3

### Sample Input #2:
in
-8


### Sample Output #1:
out
No students











answer:若无答案欢迎评论

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。