package javatest;public class Hello { public static void main(String[] args){ System.out.println("你好世界"); int one = 20 ; if(one % 2== 0){ ? ?System.out.println("one是偶數"); } int age=16; if(age >= 18){ ? ?System.out.println("成年"); }else{ ? ?System.out.println("罰做500個俯臥撐"); } int age1=25; ? ?if(age1 >= 60){ ? ? ? ?System.out.println("老年"); ? ?}else if(age1>= 40 & age1<= 60){ ? ? ? ?System.out.println("中年"); ? ?}else(age1 <18 ){ ? ? ? ?System.out.println("少年"); ? ?}? ??? ?? }}提示else那里錯了 請問是錯在哪呢
添加回答
舉報
0/150
提交
取消