a = 120b = 40 while a != b: if a > b: a = a - b else: b = b - a print(a)print:("NWD =", )
Standard input is empty
40
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!