public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
String res;
if ((one%2) == 0)
res = "偶数";
else
res = "奇数";
System.out.println("one是"+res);
}
}为啥这个是对的,
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
String res;
if ((one%2) == 0)
res = "偶数";
System.out.println("one是"+res);
}
}这个就是错的了,跪求!!
三岁半
Bangk
慕妹5461943
Super_Scholar
珍惜选择
NMX
相关分类