fork download
  1.  
  2.  
  3.  
  4.  
  5.  
  6. a = 14
  7. b = 12
  8.  
  9. while b != 0:
  10. dzielnik = b
  11. b = a % b
  12. a = dzielnik
  13.  
  14. print("NWD =", a)
Success #stdin #stdout 0.11s 14064KB
stdin
Standard input is empty
stdout
NWD = 2