Question PSC-LOOP-0050
MediumWhat will be printed by the following pseudocode?
Integer a = 48, b = 18, t
while (b != 0)
t = a mod b
a = b
b = t
end while
Print a
- A.
6
- B.
18
- C.
Sign up free to see the answer and a step-by-step explanation.