H6

Given a positive integer, find the sum of its digits.

Input: A positive integer in the range [0, 1010) without leading zeroes

Output: The sum of its digits

Examples:

999999->72
10103 ->5
4     ->4

Languages, by Score

Languages, by Name


Back to Hole List

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License