请检查输出是否包含:它是个3位的数!
int num = 999;
int count = 0;
do
{
count++;
num = num/10;
}
while (num>0);
System.ou.println("它是个"+ count + "位的数!");
int num = 999;
int count = 0;
do
{
count++;
num = num/10;
}
while (num>0);
System.ou.println("它是个"+ count + "位的数!");
2017-08-20
举报