Write a program to find the sum of the digits of a number recursively.
MediumProblem Statement
Write a program to find the sum of the digits of a number recursively.
Sample Input
int n = 12345;
Sample Output
Sum of digits = 15
Limits
Time: 2s · Memory: 256 MB