#include<iostream>
#include<cmath>
using namespace std;
int weishu(int x)
{int s,t=0;
while(x!=0)
{s=x%10;
x/=10;
t++;}
return t;
}
int main()
{int n;
cin>>n;
cout<<weishu(n)<<endl;
return 0;
}
求正整数的位数
于 2018-01-23 17:19:09 首次发布