Sum of digits

Given an integer, print the sum of its digits.
Input
Output
123
6
12
3
3
3
 
To check your solution you need to sign in
Sign in to continue