Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 100;
y_correct = cumsum(1:13);
assert(isequal(TriBeNum(x),y_correct))
|
2 | Pass |
%%
x = 1000;
y_correct = cumsum(1:44);
assert(isequal(TriBeNum(x),y_correct))
|
1421 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Change the sign of even index entries of the reversed vector
296 Solvers
367 Solvers
347 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!