为什么会说我输出错误呢?输出结果就是:它是个3位数!
public class HelloWorld{
public static void main(String[] args){
final long N=999;
long num = N;
int count = 0;
if(num==0)
{
count++;
}
else if(num!=0)
{
for(;num<1000000000;num=num*10)
{
count++;
}
count=10-count;
num=N;
}
System.out.println("它是个"+count+"位的数! ");
}
}