1044: 数字求和(4)(07级)wk

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:29 Solved:18

Description

输入一个正整数,输出其各个位置上的数字之和。 

Input

输入一个数字

Output

输出各个位上的数字的和

Sample Input Copy

51234

Sample Output Copy

15

HINT

飞翔编程知识库系统的微课讲解   while循环