Problem A: 求任意三位数各个数位上数字的和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:161
Solved:53
Description
对于一个任意的三位自然数x,编程计算其各个数位上的数字之和。
Input
只有一个整数x (100≤x≤999)。
Output
输出只有一行,包括1个整数。
Sample Input Copy
123
Sample Output Copy
6