发布网友 发布时间:2022-04-23 15:41
共1个回答
热心网友 时间:2023-10-08 18:57
假设mark就是学生的分数switch (mark/10) {
case 1:
case 2:
case 3:
case 4:
case 5:
System.out.println("不及格");
break;
case 6:
System.out.println("及格");
break;
case 7:
System.out.println("中");
break;
case 8:
System.out.println("良");
break;
case 9:
case 10:
System.out.println("优秀");
break;
}