You are on page 1of 1

#include<iostream.

h>
int main()
{int n,f;
cout<<"n="; cin>>n;
f=0;
while(n>0)
{n=n/10;
f++;
}
cout<<f;
}

You might also like