不太懂..
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(i=1;i<1000000000;i=i*10){
if(num/i>=1){
count=count+1;
}
}
System.out.println("它是个"+count+"位数");
}
}
问题出在那...
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(i=1;i<1000000000;i=i*10){
if(num/i>=1){
count=count+1;
}
}
System.out.println("它是个"+count+"位数");
}
}
问题出在那...
2018-05-29
举报