Question PSC-FUNC-0025
EasyWhat is the output of this pseudocode?
Function fib(Integer n)
if (n < 2)
return n
end if
return fib(n - 1) + fib(n - 2)
End Function
Print fib(7)
- A.
7
- B.
13
- C.
21
- D.
8
Sign up free to see the answer and a step-by-step explanation.