Problem1512--数字的和

1512: 数字的和

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 31  Solved: 12
[Status] [Submit] [Creator:]

Description

输入一个整数,求各个数位上的数字和。

输入:

一行一个整数nn最多200位。

输出:

一行一个整数n,表示整数n的各位数字之和。

Sample Input Copy

1234

Sample Output Copy

10

Source/Category