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.  
  8. def nww(a, b):
  9. return a * b // nwd (a,b)
  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.09s 14208KB
stdin
Standard input is empty
stdout
12
36