14685 - Sum of four-digit integer
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Write a program that reads a four-digit positive integer and computes the sum of its digits.
For example, if the input is 1234, then the output should be 10.
Input
Four integer
Output
The sum of the four integers
Tags
11410EE 231002