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