Cody

Solution 2481899

Submitted on 6 Jun 2020 by Ibrahim Sargin
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))

1. terim: 1 2. terim: 1

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

1. terim: 1 2. terim: 1 3. terim 2 4. terim 3 5. terim 5 6. terim 8

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

1. terim: 1 2. terim: 1 3. terim 2 4. terim 3 5. terim 5 6. terim 8 7. terim 13 8. terim 21 9. terim 34 10. terim 55

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

1. terim: 1 2. terim: 1 3. terim 2 4. terim 3 5. terim 5 6. terim 8 7. terim 13 8. terim 21 9. terim 34 10. terim 55 11. terim 89 12. terim 144 13. terim 233 14. terim 377 15. terim 610 16. terim 987 17. terim 1597 18. terim 2584 19. terim 4181 20. terim 6765