Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
ans =
50
ans =
2
|
2 | Pass |
%%
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
ans =
49 48 50 52
ans =
7
|
3 | Pass |
%%
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
ans =
54 53 53 51 54
ans =
25
|
Swap the first and last columns
12413 Solvers
1398 Solvers
1163 Solvers
1327 Solvers
Split a string into chunks of specified length
475 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!