Question

Assuming the following pseudocode for the Fibonacci series, what is the value of the 5th Fibonacci number (fibonacci (5))?
fibonacci(0) = 0
fibonacci(1) = 1
fibonacci(n) = fibonacci(n - 1) + fibonacci(n - 2)
a. 1.
b. 3.
c. 5.
d. 7.

Answer

This answer is hidden. It contains 4 characters.