Question PSC-FUNC-0019
HardWhat will be the output of the following pseudocode?
Function t(Integer n)
if (n > 0)
t(n - 1)
Print n
t(n - 1)
end if
End Function
t(3)
- A.
3 2 1 1 2 3
- B.
1 2 3 3 2 1
- C.
1 1 2 1 1 3
- D.
1 2 1 3 1 2 1
Sign up free to see the answer and a step-by-step explanation.