C program to calculate sum of all digits using recursion
In this C program, we are going to learn how to sum of all digits using recursion method? Here, a number will be entered through the user and program will calculate sum of all digits.
Given a number and we have to sum of all digits using C language recursion function in C language.
Example:
Input number: 1230
Output:
Sum of all digits: 6
Sum of digits of a number program using recursion.
Output
need an explanation for this answer? contact us directly to get an explanation for this answer