Question PSC-FUNC-0061
HardWhat will be the output of the following pseudocode?
Function f(Integer n)
if (n <= 0)
return 0
end if
return f(n - 1) + f(n - 2) + 1
End Function
Print f(5)
- A.
8
- B.
12
- C.
Sign up free to see the answer and a step-by-step explanation.