Cody

Solution 971445

Submitted on 15 Sep 2016 by Thomas Hartmann
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
a = 1; b = 2; out = sumDigits(a); assert(isequal(out, b))

b = 0 m = 2 b = 2 n = 0

2   Pass
a = 10; b = 7; out = sumDigits(a); assert(isequal(out, b))

b = 0 m = 4 b = 4 n = 102 m = 2 b = 6 n = 10 m = 0 b = 6 n = 1 m = 1 b = 7 n = 0

3   Pass
a = 16; b = 25; out = sumDigits(a); assert(isequal(out, b))

b = 0 m = 6 b = 6 n = 6553 m = 3 b = 9 n = 655 m = 5 b = 14 n = 65 m = 5 b = 19 n = 6 m = 6 b = 25 n = 0