大佬們,為什么運(yùn)行成功,輸出錯(cuò)誤?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
? ? ? ? ? ? ? ?
int count=0;
for(count=0;count<=9;count++){
int a=(10^count);
if ((num/a)>=1)
{continue;}
{System.out.println("這是個(gè)"+count+"位的數(shù)!");}
break;
}
}
}
2018-05-31
輸出放到循環(huán)外面