import java.util.Scanner;
public class Test2
{
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
System.out.println("分数");
int x = s.nextInt();
if(x>=90&&x<=100)
{
System.out.println("A等级");
}
else if(x>=80&&x<=89)
{
System.out.println("B等级");
}
else if(x>=70&&x<=79)
{
System.out.println("c等级");
}
else if(x>=60&&x<=69)
{
System.out.println("D等级");
}
else if(x>=0&&x<=59)
{
System.out.println("E等级");
}
else
{
System.out.println("输入数字不对");
}
}
} |
|