Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
y_correct = 1;
assert(isequal(sc(n),y_correct))
ans =
1
|
2 | Pass |
n = 5;
y_correct = 1225;
assert(isequal(sc(n),y_correct))
ans =
1225
|
3 | Pass |
n = 10;
y_correct = 19900;
assert(isequal(sc(n),y_correct))
ans =
19900
|
3968 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1018 Solvers
376 Solvers
129 Solvers
112 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!