Recursive Digit Sum

Easy

📝 Description

Find sum of digits using recursion

Input Format

A single integer

Output Format

Sum of digits

Constraints

0 ≤ n ≤ 10^9

🔍 Sample Input

12345
            

✅ Sample Output

15
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run