输入一个百分制的成绩t后,按下式输出它的等级。等级为:90100为A,8089为B,7079为C,6069为D,0~59为E。
样例输入
98
样例输出
A
import java.util.Scanner;
public class 成绩的等级输出 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(90 <= n && n<= 100){
System.out.println("A");
}
if(80 <= n && n<= 89){
System.out.println("B");
}
if(70 <= n && n<= 79){
System.out.println("C");
}
if(60 <= n && n<= 69){
System.out.println("D");
}
if(0 <= n && n<= 59){
System.out.println("E");
}
}
}