admin@onlinelearningcenter.in (+91) 7 999 01 02 03 Get started with 45 Hours of Free course right now 

WAP to find the sum of digit of a number using recursion

Suraj Ghimire
10 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments