Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
x =
2
sum =
0
|
2 | Pass |
%%
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
x =
1024
sum =
0
|
3 | Pass |
%%
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
x =
65536
sum =
0
|
3115 Solvers
Find the alphabetic word product
2322 Solvers
Back to basics 17 - white space
245 Solvers
Vectorize the digits of an Integer
269 Solvers
Spot the First Occurrence of 5
365 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!