Create a gist now

Instantly share code, notes, and snippets.

fizzbuzz in clojure
(doseq [i (range 1 101)]
(if (and (= (mod i 3) 0) (= (mod i 5) 0))
(println "FizzBuzz")
(if (= (mod i 3) 0)
(println "Fizz")
(if (= (mod i 5) 0)
(println "Buzz")
(println i)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment