The Sum of Digits of the Number
[deleted]
it calculates the sum of the digits. for example: 6392 would be 6 + 3 + 9 + 2 which would equal 20
Share your repls and programming experiences
it calculates the sum of the digits. for example: 6392 would be 6 + 3 + 9 + 2 which would equal 20