Medium
Sum of Digits
Read a three-digit number and print the sum of its digits using // and %.
Input
One integer 100–999.
Output
The digit sum.
Sample 1
Input
123
Output
6
Sample 2
Input
999
Output
27
Output appears hereOne integer 100–999.
The digit sum.
123
6
999
27
Output appears here