999判断几位数,错误提示error: class, interface, or enum expected } ^ 1 error
int num = 999;
int count = 0;
do
{
count++;
num=num/10;
}
while(num >0);
System.out.println("它是个" + count + "位的数!");
int num = 999;
int count = 0;
do
{
count++;
num=num/10;
}
while(num >0);
System.out.println("它是个" + count + "位的数!");
2015-07-23
举报