fork(1) download
  1. def nwd(a, b):
  2. while a != b:
  3. if a > b:
  4. a = a - b
  5. else:
  6. b = b - a
  7. return a
  8.  
  9. print(nwd(25,35))
  10.  
  11.  
Success #stdin #stdout 0.06s 14132KB
stdin
Standard input is empty
stdout
25