Hello,
In this program, we use Recursion to figure out a sum of set number. Example : 1+2+3+4=10 Here the variable sum is 4 and “total” is 10. Return 1 is the first term of the operation.