admin@onlinelearningcenter.in (+91) 7 999 01 02 03

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

Suraj Ghimire
13 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

Jquery Comments Plugin