public class hello {
public static void main(String[] args) {
int count = 0;
for(int num = 9; (num/=10)>0 ;){
count++;
}
System.out.println("它是个"+count+"位数");
for循环中的循环条件不通过,count仍为初值0,所以是0位数