编程题4-1答案
public class HekloWord {
public static void main ( String [] args ) {
int one = 20;
int newOne = one%2;
if ( newOne == 0) {
System.out.println( "one是偶数" )
}
}
}
public class HelloWorld { public static void main(String[] args) { int one = 20 ; if (one % 2 == 0) System.out.println("one是偶数"); } }
one是偶数
你的问题是什么?