This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 7;
y_correct = 8256;
assert(isequal(sum_int(x),y_correct))
S =
(1,7) 8256
(1,10) 524800
|
2 | Pass |
%%
x = 10;
y_correct = 524800;
assert(isequal(sum_int(x),y_correct))
S =
(1,7) 8256
(1,10) 524800
|
1163 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Create a cell array out of a struct
506 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!