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))
|
651 Solvers
Sum of first n terms of a harmonic progression
257 Solvers
Find the maximum number of decimal places in a set of numbers
739 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
405 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!