Advertisement
Umme_nishat

problem-10

Jun 28th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,count=0;
  5. scanf("%d",&n);
  6. while(n!=0){
  7.     n=n/10;
  8.     count=count+1;
  9. }
  10. printf("%d",count);
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement