This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
y = 55;
assert(isequal(summation(n),y))
|
2 | Pass |
n = 0;
y = 0;
assert(isequal(summation(n),y))
|
3 | Pass |
n = 17;
y = 153;
assert(isequal(summation(n),y))
|
6063 Solvers
894 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
Find nearest prime number less than input number
268 Solvers
Reverse the elements of an array
687 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!