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 | Fail |
n = 5;
S = 40;
assert(isequal(FibSumSquares(n),S))
|
2 | Fail |
n = 8;
S = 714;
assert(isequal(FibSumSquares(n),S))
|
3 | Fail |
n = 11;
S = 12816;
assert(isequal(FibSumSquares(n),S))
|
4 | Fail |
n = 15;
S = 602070;
assert(isequal(FibSumSquares(n),S))
|
5 | Fail |
n = 21;
S = 193864606;
assert(isequal(FibSumSquares(n),S))
|
6 | Fail |
n = 26;
S = 23843770274;
assert(isequal(FibSumSquares(n),S))
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
286 Solvers
1097 Solvers
find the surface area of a cube
336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!