Created
March 15, 2018 14:45
-
-
Save mzaglia/81dba0c82739fc787dd219842e102170 to your computer and use it in GitHub Desktop.
gcd_clojure created by mzaglia - https://repl.it/@mzaglia/gcdclojure
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
(defn gcd [value1 value2] | |
(if (zero? value2) | |
value1 | |
(recur value2 (mod value1 value2)))) | |
(gcd 150 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment