1269: 用while语句求一个多位数各个数位上的和
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:14
Solved:9
Description
输入一个正整数,输出其各个位置上的数字之和。
Input
输入一个数字
Output
输出各个位上的数字的和
Sample Input Copy
51234
Sample Output Copy
15