Question PSC-LOOP-0038
EasyWhat will be the output of the following pseudocode?
Integer a = 48, b = 18
while (a != b)
if (a > b)
a = a - b
else
b = b - a
end if
end while
Print a
- A.
18
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.