这样做对不?
判断one是否为偶数
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one==0){
return false;
}
else if(one<o){
return false;
}
else(one%2==0){
System.out.println("one是偶数");
}
}
}
判断one是否为偶数
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one==0){
return false;
}
else if(one<o){
return false;
}
else(one%2==0){
System.out.println("one是偶数");
}
}
}
2015-06-03
举报