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))
num =
1
num =
0
|
3 | Pass |
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
num =
3
num =
2
num =
1
num =
0
|
556 Solvers
831 Solvers
Switch matrix to a column vector
260 Solvers
2985 Solvers
Area of an equilateral triangle
2763 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!