mdnurnobihosen

Assignment9

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