Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Tuesday Praxis

By: a guest on Feb 16th, 2009  |  syntax: Scheme  |  size: 0.10 KB  |  views: 624  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (define (gcd m n)
  2.   (cond ((< m n) (gcd m (- n m)))
  3.         ((< n m) (gcd (- m n) n))
  4.         (else m)))
clone this paste RAW Paste Data