fork download
  1. a = 120
  2. b = 40
  3.  
  4. while a != b:
  5. if a > b:
  6. a = a - b
  7. else:
  8. b = b - a
  9.  
  10. print(a)
  11. print:("NWD =", )
Success #stdin #stdout 0.13s 14092KB
stdin
Standard input is empty
stdout
40