Question PSC-LOOP-0018
HardWhat will be the output of the following pseudocode?
Integer x = 48, y = 36, r
while (y != 0)
r = x mod y
x = y
y = r
end while
Print x
- A.
12
- B.
4
- C.
Sign up free to see the answer and a step-by-step explanation.