Hide
Problem H
Sum of Digits
Accepted submissions to this problem will be granted a score of 100
Write a program that, given an integer
Input
Input consists of one line with one integer
Output
Output one line with one integer, the sum of all the digits
of
Sample Input 1 | Sample Output 1 |
---|---|
192 |
12 |
Sample Input 2 | Sample Output 2 |
---|---|
11111 |
5 |
Sample Input 3 | Sample Output 3 |
---|---|
158931876357 |
63 |
Sample Input 4 | Sample Output 4 |
---|---|
0 |
0 |
Sample Input 5 | Sample Output 5 |
---|---|
123456789 |
45 |