import java.util.Scanner;
public class wqa {
public static void main(String[] args) {
//TODO Auto-generated method stub
int score,grade;
Scanner sc=new Scanner(System.in);
System.out.println(“请输入学生成绩:”);
score=sc.nextInt();
grade=score/10;
switch(grade)
{
case 10:System.out.println(“学生的成绩等级为A”);break;
case 9:System.out.println(“学生的成绩等级为A”);break;
case 8:System.out.println(“学生的成绩等级为B”);break;
case 7:System.out.println(“学生的成绩等级为C”);break;
case 6:System.out.println(“学生的成绩等级为D”);break;
default:System.out.println(“学生的成绩等级为E”);
}
}
}
学生成绩等级
最新推荐文章于 2022-01-04 20:38:11 发布