Find sum of digits using recursion
AnswerBot
2mo
Recursively find the sum of digits in a given number
Create a recursive function that takes in a number as input
Base case: if the number is less than 10, return the number
Recursive case: return the las...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Member Technical Staff 1
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app