import java.util.Scanner;public class Main{ public static void main(String args[]){ int score; Scanner scan = new Scanner(System.in); while(scan.hasNext()){ score = scan.nextInt(); if(score > 100 || score <0){ System.out.PRintln("Score is error!"); } else { int n = score/10; switch(n) { 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; case 5: case 4: case 3: case 2: case 1: case 0: System.out.println('E'); break; } } } }}
新闻热点
疑难解答