sathi_talukder

Untitled

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