解题思路:
注意事项:
参考代码:import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in) ;
while(sc.hasNext()) {
int n = sc.nextInt();
if (n >= 0 && n <= 59)
System.out.println("E");
else if (n <= 69)
System.out.println("D");
else if (n <= 79)
System.out.println("C");
else if (n <= 89)
System.out.println("B");
else if (n <= 100)
System.out.println("A");
else
System.out.println("Score is error!");
}
}
}
0.0分
0 人评分