Created
October 11, 2013 17:15
-
-
Save mabako/6938533 to your computer and use it in GitHub Desktop.
euclidian algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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