Coding_Daily

 Coding Daily

1️⃣ Sum of Digits (Recursive)

Question: Write a recursive function to find the sum of digits of a given number.

Example:

Input: 123  

Output: 6  // (1 + 2 + 3)






Comments

Popular posts from this blog

DSA

Java_Script