1. Sum of digits
- Points
- 20
- Type
- ConsoleIO
Read a non-negative integer. Print the sum of its digits.
Examples
| Input | Output |
|---|---|
123 |
6
|
9 |
9
|
100000 |
hidden |
Your code is saved locally until you submit a solution.