Question PSC-FUNC-0032
EasyWhat will be the output of the following pseudocode?
Function g(Integer n)
if (n == 0)
return 0
end if
return n mod 2 + g(n / 2)
End Function
Print g(13)
- A.
4
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.