fork download
  1. def nwd(a, b):
  2. while b != 0:
  3. pom = b
  4. b = a % b
  5. a = pom
  6. return a
  7.  
  8. def rzad(goscie, gospodarze):
  9. return nwd(goscie,gospodarze)
  10. print(nwd(72,90))
  11.  
Success #stdin #stdout 0.07s 14188KB
stdin
Standard input is empty
stdout
18