Question PSC-FUNC-0011
MediumWhat will be the output of the following pseudocode?
Function g(Integer a, Integer b)
if (b == 0)
return a
end if
return g(b, a mod b)
End Function
Print g(84, 36)
- A.
4
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.