Skip to content

Latest commit

 

History

History

debug-sum-of-digits-of-a-number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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

Example

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