Cody

Solution 1209285

Submitted on 9 Jun 2017 by Rafael Hernandez-Walls
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
n = 1; f = 1; assert(isequal(fib(n),f))

2   Pass
n = 6; f = 8; assert(isequal(fib(n),f))

a = 1 2 2 a = 2 3 3 a = 3 5 5 a = 5 8 8

3   Pass
n = 10; f = 55; assert(isequal(fib(n),f))

a = 1 2 2 a = 2 3 3 a = 3 5 5 a = 5 8 8 a = 8 13 13 a = 13 21 21 a = 21 34 34 a = 34 55 55

4   Pass
n = 20; f = 6765; assert(isequal(fib(n),f))

a = 1 2 2 a = 2 3 3 a = 3 5 5 a = 5 8 8 a = 8 13 13 a = 13 21 21 a = 21 34 34 a = 34 55 55 a = 55 89 89 a = 89 144 144 a = 144 233 233 a = 233 377 377 a = 377 610 610 a = 610 987 987 a = 987 1597 1597 a = 1597 2584 2584 a = 2584 4181 4181 a = 4181 6765 6765