Skip to content

Latest commit

 

History

History

debugSumOfDigitsOfANumber

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Debug Sum of Digits of a Number

7 kyu link to kata
my solution

Debug function getSumOfDigits that takes positive integer to calculate sum of its digits. Assume that argument is an integer.

Example

123  => 6
223  => 7
1337 => 14