Cody

Solution 1992576

Submitted on 27 Oct 2019 by Nikolaos Nikolaou
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))

y = 2

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

y = 8

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

y = 7

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

y = 5

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

y = 11

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

y = 8

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

y = 14

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

y = 22

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

y = 25

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

y = 31

Suggested Problems

More from this Author2