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