大神帮我看看错哪了
public static void main(String[] args){
int num = 999;
int count = 0;
for(i=1;i<=10;i++)
{ num/=10;
count=i;
if(num=0){
System.out.println("它是个"+count+"位的数");
break;
}
}
public static void main(String[] args){
int num = 999;
int count = 0;
for(i=1;i<=10;i++)
{ num/=10;
count=i;
if(num=0){
System.out.println("它是个"+count+"位的数");
break;
}
}
2017-02-20
举报