fork(1) download
  1. # algorytm euklidesa
  2. def nwd(a,b):
  3. while a!=b:
  4. if a>b:
  5. a=a-b
  6. elif a<b:
  7. b=b-a
  8. return a
  9. print(nwd(17,24))
Success #stdin #stdout 0.04s 9580KB
stdin
Standard input is empty
stdout
1