WAP to find the sum of digit of a number using recursion
Eg:
Input = 1456
Output= 16 ie(1+4+5+6 )
Use tail recursion if possible.
Published By : Suraj Ghimire
WAP to find the sum of digit of a number using recursion
Eg:
Input = 1456
Output= 16 ie(1+4+5+6 )
Use tail recursion if possible.