Sum Of Digits Of A Number

easy
1. You've to display the sum of digits of a number.
2. Take as input "n", the number for which the sum of digits have to be displayed.
3. Print the sum of the digits.

Input Format

An integer n

Output Format

An integer n

Constraints

1<=n<=1000

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
1354
Output
13
Previous
Check If The Given Number Is Armstrong Or Not
Next
Check If Given Number Is Palindrome Or Not

Related Questions