Cody

Solution 493804

Submitted on 29 Aug 2014 by Tim
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 = 2

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

b = 1024 102 10 1

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

b = 65536 6553 655 65 6

Suggested Problems

More from this Author95