Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am waylon531 on github.
  • I am waylon531 (https://keybase.io/waylon531) on keybase.
  • I have a public key whose fingerprint is F862 BEA6 BE3F 96D8 7FDA 249C 9B50 3A38 8B20 69D0

To claim this, I am signing this object:

@waylon531
waylon531 / gcd.py
Last active August 29, 2015 13:56
Greatest common divisor using the Euclidian Algorithm
import sys,math
a = float(sys.argv[1])
b = float(sys.argv[2])
remainder = 1.0
if a<b:
a=b
b=float(sys.argv[1])
c = a/b
while(round(remainder,2)!=0):
q=math.floor(c+.000001)