Question PSC-FUNC-0062
HardWhat is the output of this pseudocode?
Function g(Integer a, Integer b)
if (b == 0)
return a
end if
return g(b, a mod b)
End Function
Function l(Integer a, Integer b)
return a / g(a, b) * b
End Function
Print g(462, 1071), l(12, 18)
- A.
21 216
- B.
7 36
- C.
21 36
- D.
42 36
Sign up free to see the answer and a step-by-step explanation.