Sum of Digits

Easy

📝 Description

Calculate the sum of digits in a number

Input Format

A single integer

Output Format

Sum of digits

Constraints

-10000 ≤ n ≤ 10000

🔍 Sample Input

1234
            

✅ Sample Output

10
            

Code Editor

Please login to run and submit code.

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