fork download
  1. a = 122
  2. b = 22
  3.  
  4. while b != 0:
  5. dzielnik = b
  6. b = a % b
  7. a = dzielnik
  8.  
  9. print("NWD =", a)
Success #stdin #stdout 0.13s 14104KB
stdin
Standard input is empty
stdout
NWD = 2