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. def nww(a, b):
  8. pom = nwd(a, b)
  9. return a * b // pom
  10. print(nww(25,35))
  11.  
  12.  
Success #stdin #stdout 0.09s 14152KB
stdin
Standard input is empty
stdout
175