我这样做输出的也对啊
int num = 999;
int count =1 ;
for(;num/10!=0;num=num/10){
count=count+1;}
System.out.println("它是个"+count+"位的数");
int num = 999;
int count =1 ;
for(;num/10!=0;num=num/10){
count=count+1;}
System.out.println("它是个"+count+"位的数");
2016-02-16
举报