Advertisement
mujahidul_islam

10

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