Skip to content

Instantly share code, notes, and snippets.

@mabako
Created October 11, 2013 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabako/6938533 to your computer and use it in GitHub Desktop.
Save mabako/6938533 to your computer and use it in GitHub Desktop.
euclidian algorithm
(define (euklid a b)
(if (= b 0) a (euklid b (modulo a b)))
)
(print (euklid 1071 1029))
(print (euklid 1029 1071))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment