import java.util.Scanner;
class grade{ //记得修改文件名
public static void main (String[] args){
System.out.println("请输入您的分数");
int g; //定义成绩为"g"
Scanner sc=new Scanner(System.in);
g=sc.nextInt();
if(g>100 || g<0)
{
System.out.println("您输入的分数有误!");
}
else
{
switch (g/10)
{
case 10:
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");
break;
}
}
}
}