Potter inherited the depot at
the boar woods of Tuskmore along with its curious bookkeeping system for parcels. Time to make sense of it.
Task: Read an integer n and print the sum of its decimal digits.
Input format: One line with a single integer n.
Output format: Print the digit sum.
Constraints: -1000000000000000000 <= n <= 1000000000000000000.
Example 1:
Input: -296562129954671504
Output: 83
Example 2:
Input: 150035753216827488
Output: 75
Example 3:
Input: 29961188999016193
Output: 91
Constraints:
-1000000000000000000 <= n <= 1000000000000000000.
Loading...
Test Cases:No test cases
No test cases available.
The Digit Sum at Tuskmore - EASY Coding Problem | CodeTikki