countDigits 🌶️
Write a method that takes one int parameter, n, and returns how many digits it has. You can assume n is always a positive number. countDigits(42) returns 2. countDigits(7) returns 1.
Write a method that takes one int parameter, n, and returns how many digits it has. You can assume n is always a positive number. countDigits(42) returns 2. countDigits(7) returns 1.