Question PSC-FUNC-0013
MediumWhat will be the output of the following pseudocode?
Function r(Integer n)
if (n == 0)
return ""
end if
return toString(n) + r(n - 1) + toString(n)
End Function
Print r(3)
- A.
3213
- B.
123321
- C.
321123
- D.
333
Sign up free to see the answer and a step-by-step explanation.