Exercise 3: Sum of Digits Using Recursion

This exercise requires you to use recursion to calculate the sum of digits of a number passed

We'll cover the following

Problem Statement

In this exercise you have to write a method DigitSum to find the sum of digits of a number using recursion.

Example

Input:

A number given: 25 

Get hands-on with 1400+ tech skills courses.