Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main(void)
- {
- int n,c=0;
- scanf("%d",&n);
- while(n>0)
- {
- n=n/10;
- c++;
- }
- printf("%d",c);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement