Kotlinlearncs.online LogoJava
Return to List

Solve: Digit Total

Created By: Chris Taylor
/ Version: 2023.7.0

Complete the following method that returns the total of all the individual digits added together. Your implementation must use recursion and may not use any loops.

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

Related Lessons

Stuck? You may find these lessons helpful: