#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
int n=1;
a=a/10;
while(a>0)
{
a=a/10;
n++;
}
printf("%d",n);
}
转载于:https://www.cnblogs.com/xderbyy/p/9480423.html
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
int n=1;
a=a/10;
while(a>0)
{
a=a/10;
n++;
}
printf("%d",n);
}
转载于:https://www.cnblogs.com/xderbyy/p/9480423.html