代码哪里出错了
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
int a=one%2;
if(a==0){
System.out.println("one为偶数");
}elso{
System.out.println("one为奇数");
}
}
}
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
int a=one%2;
if(a==0){
System.out.println("one为偶数");
}elso{
System.out.println("one为奇数");
}
}
}
2022-08-28
举报