Write a recursive function that counts the number of digits in a non-negative integer.
countDigits(123) => 3
countDigits(0) => 1
countDigits(99999) => 5
Waiting for you...
CodeBot will comment on your code as you write...
Click "Run Code" or press Ctrl+Enter to test your solution