Question PSC-FUNC-0030
EasyWhat does the following pseudocode print?
Function gcd(Integer a, Integer b)
if (b == 0)
return a
end if
return gcd(b, a mod b)
End Function
Print gcd(81, 27)
- A.
9
- B.
27
- C.
Sign up free to see the answer and a step-by-step explanation.