// 录入五个成绩 统计优秀和良好的人数
double you = 90, hao = 80;
double[] a = new double[5];
int youcount = 0, haocount = 0;
Scanner sc = new Scanner(System.in);
System.out.println("请输入五个学生成绩");
for (int i = 0; i < a.length; i++) {
a[i] = sc.nextDouble();
if (a[i] >= 90 && a[i] <= 100) {
youcount++;
}
if (a[i] >= 80 && a[i] < 90) {
haocount++;
}
}
System.out.println(youcount);
System.out.println(haocount);
// 录入五个成绩 统计优秀和良好的人数
double you = 90, hao = 80;
double[] a = new double[5];
int youcount = 0, haocount = 0;
Scanner sc = new Scanner(System.in);
System.out.println("请输入五个学生成绩");
for (int i = 0; i < a.length; i++) {
a[i] = sc.nextDouble();
if (a[i] >= 90 && a[i] <= 100) {
youcount++;
}
if (a[i] >= 80 && a[i] < 90) {
haocount++;
}
}
System.out.println(youcount);
System.out.println(haocount);