Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1;
b = 2;
out = sumDigits(a);
assert(isequal(out, b))
b =
2
b =
2
|
2 | Pass |
a = 10;
b = 7;
out = sumDigits(a);
assert(isequal(out, b))
b =
1024
b =
7
|
3 | Pass |
a = 16;
b = 25;
out = sumDigits(a);
assert(isequal(out, b))
b =
65536
b =
25
|
Return a list sorted by number of occurrences
1504 Solvers
926 Solvers
How many trades represent all the profit?
520 Solvers
450 Solvers
251 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!