我怎么错误了?
int age=25;
if (age>60){
System.out.println("老年");
}else if (40<age<60){
System.out.println("中年");
}else if (18<age<40){
System.out.println("少年");
}else{
System.out.println("童年");
}
int age=25;
if (age>60){
System.out.println("老年");
}else if (40<age<60){
System.out.println("中年");
}else if (18<age<40){
System.out.println("少年");
}else{
System.out.println("童年");
}
2018-09-20
举报