Cody

Solution 1751834

Submitted on 15 Mar 2019 by Munish Raj
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))

n = 0

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

n = 102 n = 10 n = 1 n = 0

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

n = 6553 n = 655 n = 65 n = 6 n = 0

More from this Author95