问题123
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 1;
for( ; count<10; count++){
int i = 10 ^ count;
if(num > i){
continue;
}
System.out.println("它是个"+count+"位数!");
break;
}
}
}
错误?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 1;
for( ; count<10; count++){
int i = 10 ^ count;
if(num > i){
continue;
}
System.out.println("它是个"+count+"位数!");
break;
}
}
}
错误?
2016-03-08
举报