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))
|
Find the sum of all the numbers of the input vector
31946 Solvers
228 Solvers
220 Solvers
Matlab Basics - Absolute Value
360 Solvers
1817 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!