In this tutorial, I am going to discuss programming questions to find the sum of digits of a number using recursion.
Given a positive number, Write a java code to calculate the sum of digits of a number using recursion.
For example –
Input number: 123
Output : 6 (1 + 2 + 3)