Clunky, but I'm happy ^_^
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
|
2 | Pass |
%%
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
|
3 | Pass |
%%
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
|
5831 Solvers
1600 Solvers
Check to see if a Sudoku Puzzle is Solved
278 Solvers
Arrange vector in ascending order
624 Solvers
Remove element(s) from cell array
372 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!