Question PSC-FUNC-0008
MediumWhat will be the output of the following pseudocode?
Function f(Integer n)
if (n < 2)
return n
end if
return f(n - 1) + f(n - 2)
End Function
Print f(7)
- A.
7
- B.
21
- C.
Sign up free to see the answer and a step-by-step explanation.