12345678910111213141516171819202122232425262728 |
- class TestSwitch03
- {
- public static void main(String[] args)
- {
-
-
-
-
- int s = 101;
-
- if( s >= 0 && s <=100 ){
- switch (s/60){
- case 1:
- System.out.println("合格");
- break;
- default:
- System.out.println("不合格");
- break;
- }
- }else{
- System.out.println("分数非法");
- }
-
-
- }
- }
|