Question PSC-FUNC-0051
MediumWhat will be printed by the following pseudocode?
Function gcd(Integer a, Integer b)
if (b == 0)
return a
end if
return gcd(b, a mod b)
End Function
Print gcd(84, 36) * 2, 84 * 36 / gcd(84, 36)
- A.
6 504
- B.
24 252
- C.
Sign up free to see the answer and a step-by-step explanation.