//
import java.io.*;
public class GradeLevel
{
public static void main(String args[]) throws IOException
{
BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in));
String x;
int y,n;
System.out.print("请输入一个成绩(0-100):");
x=keyin.readLine();
y=Integer.parseInt(x);
n=(99-y)/10+1;
switch(n)
{
case 1:System.out.println("A");break;
case 2:System.out.println("B");break;
case 3:System.out.println("C");break;
case 4:System.out.println("D");break;
default:System.out.println("不及格");
}
}
} |
|