fork(1) download
  1. def nwd(a, b):
  2. while b != 0:
  3. pom = b
  4. b = a % b
  5. a = pom
  6. return a
  7. def nww(a, b):
  8. pom = nwd(a, b)
  9. return a * b // pom
  10.  
  11. def kiedy(x, y):
  12. return nww(x, y)
  13.  
  14. print(kiedy(6,4))
  15. print(kiedy(9,12))
Success #stdin #stdout 0.16s 14100KB
stdin
Standard input is empty
stdout
12
36