Which of the following correctly generates the Fibonacci sequence up to the n-th term?

1
fib(n) = fib(n-1) + fib(n-2)
2
fib(n) = n * (n-1)
3
fib(n) = fib(n-1) - fib(n-2)
4
fib(n) = fib(n+1) + fib(n+2)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation