public static void main(String[] args){
int mark = 58;
int i = mark/10;
char result;
switch(i) {
case 10:
case 9: result = 'A'; break;
case 8:result = 'B';break;
case 7:result = 'C';break;
case 6: result = 'D'; break;
default:result='E';break;
}
System.out.println(result);
}
温馨提示:内容为网友见解,仅供参考