Cody

Solution 2141211

Submitted on 26 Feb 2020
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   Fail
a = 1; b = 2; out = sumDigits(a); assert(isequal(out, b))

p = 2

Assertion failed.

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

p = 1024 r = 4 b = 4 p = 102 r = 2 b = 6 p = 10 r = 0 b = 6 p = 1

Assertion failed.

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

p = 65536 r = 6 b = 6 p = 6553 r = 3 b = 9 p = 655 r = 5 b = 14 p = 65 r = 5 b = 19 p = 6

Assertion failed.

Suggested Problems

More from this Author95