按照人家输的,不知道哪错了
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
String res;
if((one%2)==0)
res ="偶数";
else
res ="奇数";
System.out.print("one是"+res);
}
}
哪错了搞不懂
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
String res;
if((one%2)==0)
res ="偶数";
else
res ="奇数";
System.out.print("one是"+res);
}
}
哪错了搞不懂
2019-06-17
举报