LearnPy Hub
← Operators problems
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
solution.py
Output appears here
Sum of Digits · Python practice problem · LearnPy Hub