Question PSC-FUNC-0050
MediumWhat does the following pseudocode print?
Function p(Integer n)
if (n > 0)
p(n - 1)
Print n
p(n - 1)
end if
End Function
p(2)
- A.
1 2 1
- B.
2 1
- C.
Sign up free to see the answer and a step-by-step explanation.