# include <stdio.h>
void main()
{
int n;
scanf("%d",&n);
if(n/10==0) printf("1\n");
else if(n/10!=0)
{
n=n/10;
if(n/10==0) printf("2\n");
else if(n/10!=0)
{
n=n/10;
if(n/10==0) printf("3\n");
}
}
}
跟下面的执行顺序是?
# include <stdio.h>
void main()
{
int n;
scanf("%d",&n);
if(n/10==0) printf("1\n");
else if(n/10!=0)
n=n/10;
if(n/10==0) printf("2\n");
else if(n/10!=0)
n=n/10;
if(n/10==0) printf("3\n");
}