/*从键盘输入学生成绩,找出最高分,并输出学生成绩等级;成绩 >=最高分-10 等级为A成绩 >=最高分-20 等级为B成绩 >=最高分-30 等级为C其余为 等级为D提示:先输入学生人数,根据人数创建int数组,存放学生成绩;*/package study01;
import java.util.Scanner;
public class Score {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("请输入学生人数:");
int length = sc.nextInt();
int[] scores = new int[length];
int maxScore = 0;
for (int i = 0; i < scores.length; i++) {
scores[i] = sc.nextInt();
if (scores[i] > maxScore) {
maxScore = scores[i];
}
}
System.out.println("最高分" + maxScore);
System.out.println("输入的成绩为:");
for (int i = 0; i < scores.length; i++) {
char level