Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
ans =
[]
|
2 | Pass |
%%
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
ans =
[]
|
3 | Pass |
%%
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
ans =
[]
|
482 Solvers
464 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
Side of an equilateral triangle
2595 Solvers
Is this triangle right-angled?
2394 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!