#include <stdio.h>
#include <stdlib.h>
int main()
{
long long n;
int count = 0;
printf("输入一个整数: ");
scanf("%lld", &n); //lld是long long整型//
while(n != 0)
{
n /= 10;
++count;
}
printf("数字是 %d 位数\n", count);
system("pause");
}