public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(i=1;i<=10;i++){
if(num>0)
count++;
else{
System.out.println("它是个"+count+"位的数!");
break;
}
num=num/10;
KXFT
DreamUp3562205
相关分类