Question PSC-FUNC-0077
HardWhat is the output of this pseudocode?
Function bin(Integer n)
if (n <= 1)
return n
end if
return bin(n / 2) * 10 + n mod 2
End Function
Print bin(37), bin(64)
- A.
37 64
- B.
101001 1000000
- C.
Sign up free to see the answer and a step-by-step explanation.