Question PSC-FUNC-0029
EasyWhat will be the output of the following pseudocode?
Function rev(Integer n, Integer r)
if (n == 0)
return r
end if
return rev(n / 10, r * 10 + n mod 10)
End Function
Print rev(472, 0)
- A.
13
- B.
0
- C.
Sign up free to see the answer and a step-by-step explanation.