public class Shuju5 {
public static void main(String[] args) {
System.out.println("请输入4位学院的成绩:");
int total = 0;
for (int i=0;i<4;i++) {
Scanner input = new Scanner(System.in);
System.out.print("请输入第"+(i+1)+"位学生的成绩:");
int score = input.nextInt();
total += score;
}double avgscore = total/3.0;
System.out.println("参考学员平均成绩是:" + avgscore);
for(int i=0;i<5;i++) {
for(int j=0;j<5;j++) {
System.out.print("*");
}System.out.println("");
}
}
}