Cody

Solution 1692356

Submitted on 14 Dec 2018 by HH
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))

ans = 2

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

ans = 8

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

ans = 7

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

ans = 5

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

ans = 11

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

ans = 8

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

ans = 14

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

ans = 22

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

ans = 25

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

ans = 31