Cody

Solution 988760

Submitted on 2 Oct 2016 by John D'Errico
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(sum_of_digits(1),2))

2   Pass
assert(isequal(sum_of_digits(3),8))

3   Pass
assert(isequal(sum_of_digits(4),7))

4   Pass
assert(isequal(sum_of_digits(5),5))

5   Pass
assert(isequal(sum_of_digits(7),11))

6   Pass
assert(isequal(sum_of_digits(9),8))

7   Pass
assert(isequal(sum_of_digits(11),14))

8   Pass
assert(isequal(sum_of_digits(14),22))

9   Pass
assert(isequal(sum_of_digits(16),25))

10   Pass
assert(isequal(sum_of_digits(20),31))

Suggested Problems

More from this Author2