Question PSC-FUNC-0017
HardWhat will be the output of the following pseudocode?
Function f(Integer n)
if (n == 1)
return 1
end if
return 1 + f(n / 2) // integer division
End Function
Print f(100)
- A.
50
- B.
8
- C.
Sign up free to see the answer and a step-by-step explanation.