Guest User

Untitled

a guest
Jan 23rd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. int countDigits(int num){
  2. int count = 0;
  3. do {
  4. count++;
  5. num = num/10;
  6. } while (num > 0);
  7. return count;
  8. }
Add Comment
Please, Sign In to add comment