为啥这样写提交不了
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num = (int) (num*0.1);
count = count+1;
}while(num>0.1);
System.out.print("它是个"+count+"位的数!");
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num = (int) (num*0.1);
count = count+1;
}while(num>0.1);
System.out.print("它是个"+count+"位的数!");
}
}
2016-03-29
举报