A while loop changes two numbers with one assignment line. a, b = 48, 18 while b: a, b = b, a % b print(a, b) What does the program print?
while
18 0
12 6
0 6
6 0
Log in to join the discussion.
Loading…