Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
ans =
2
|
2 | Pass |
%%
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
ans =
1 0 2 4
|
3 | Pass |
%%
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
ans =
6 5 5 3 6
|
1599 Solvers
831 Solvers
235 Solvers
Back to basics 23 - Triangular matrix
634 Solvers
Determine the number of odd integers in a vector
435 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!