Question PSC-FUNC-0020
HardWhat will be the output of the following pseudocode?
Function f(Integer n)
if (n <= 0)
return 0
end if
return f(n - 3) + n
End Function
Print f(10)
- A.
22
- B.
10
- C.
18
- D.
55
Sign up free to see the answer and a step-by-step explanation.