public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 1;
for(int i=10;num/i !=0; i=i*10)
count++;
System.out.print("它是个"+count+"位的数!");
}
}
public static void main(String[] args){
int num = 999;
int count = 1;
for(int i=10;num/i !=0; i=i*10)
count++;
System.out.print("它是个"+count+"位的数!");
}
}