// 1求一个班的平均成绩
Scanner scanner = new Scanner(System.in);
for (int i = 0; i< 4; i++){
int sum = 0;
System.out.println("请输入"+(i+1)+"个学生的成绩");
int score = scanner.nextInt();
sum += score;
}
int avg = sum /4 ;
System.out.println("第"+(i+1)+"班的平均成绩为:" +avg);