import java.util.Scanner;
public class dddd {
public static void main(String[] args) {
// TODO 自动生成的方法存根
Scanner scan = new Scanner(System.in);
double highest = 0;
double lowest = 0;
double avg = 0;
int count = 0;
double total = 0;
double temp = 0;
int n = 0;
if ((temp = scan.nextDouble()) >= 0) {
highest = temp;
lowest = temp;
if (temp >= 60) {
count++;
}
n++;
total = total + temp;
}
do {
temp = scan.nextDouble();
if (temp < 0) {
break;
}
n++;
if (highest < temp) {
highest = temp;
}
if (lowest > temp) {
lowest = temp;
}
if (temp >= 60) {
count++;
}
total = total + temp;
} while (temp >= 0);
System.out.println("最高分: " + highest);
System.out.println("最低分: " + lowest);
System.out.println("平均分: " + total/n);
System.out.println("及格人数: " + count);
}
}
慕粉3291149
慕的地6079101
蔚然成麟er
慕粉3291149
相关分类