package pinduoduo;
import java.util.Scanner;
public class Demo2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] scores = new int[5];
for (int i = 1; i <= 5; i++) {
System.out.println("请输入第"+i+"位学生的成绩");
int a = sc.nextInt();
scores[i-1] = a;
}
int max = scores[0];
for (int i =1 ; i < scores.length; i++) {
if(scores[i]>max) {
max = scores[i];
}
}
System.out.println("最高分为:"+max);
}
}