哪里出错了我找不到啊
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one!=0)
{
if(one%=0)
{System.out.println("one是偶数");}
else
System.out.println("one不是偶数");}
else
System.out.println("one既不是奇数也不是偶数");
}
}
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if(one!=0)
{
if(one%=0)
{System.out.println("one是偶数");}
else
System.out.println("one不是偶数");}
else
System.out.println("one既不是奇数也不是偶数");
}
}
2015-04-01
举报