Kotlinlearncs.online LogoJava
Return to List

Solve: Count Odd Digits

Created By: Chris Taylor
/ Version: 2023.7.0

Complete the following method that counts how many of the digits in the integer are odd. Your implementation must use recursion and may not use any loops.

int countOddDigits(int n) {
return 0; // You may need to remove this starter code
}

Related Lessons

Stuck? You may find these lessons helpful: