#include<bits/stdc++.h>//fixed<<setprecision(2)
using namespace std;//for(int i=1;i<=a;i++)
int main()
{
int a,c=0;
cin>>a;
while(a)
{
a/=10;
c++;
}
cout<<c;
return 0;
}
输入一个正整数,输出其位数——while
猜你喜欢
转载自blog.csdn.net/m0_52628784/article/details/110312666
今日推荐
周排行