这个代码不对吗
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
int i=1;
do
{
count++;
i = i*10;
}
while ((num/i)!=0);
System.out.println("它是一个"+count+"位的数!");
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
int i=1;
do
{
count++;
i = i*10;
}
while ((num/i)!=0);
System.out.println("它是一个"+count+"位的数!");
}
}
2016-08-05
举报