fork download
  1. #0JPQsNCy0YDQuNC70Y7QuiDQkNC90LTRgNGW0Lk=
  2. def gcd(a, b):
  3. while a != b:
  4. if a>b:
  5. a = a -b
  6. else:
  7. b = b - a
  8. u = a
  9. return u
  10.  
  11. k = gcd(21, 14)
  12. print(k)
Success #stdin #stdout 0.12s 14100KB
stdin
Standard input is empty
stdout
7