大佬們,為什么運行成功,輸出錯誤?
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("這是個"+count+"位的數!");}
break;
}
}
}
2018-05-31
輸出放到循環外面