Skip to content

Instantly share code, notes, and snippets.

@copperlight
Created April 17, 2016 22:03
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 copperlight/0e293abaead9f81d250e189d60616f86 to your computer and use it in GitHub Desktop.
Save copperlight/0e293abaead9f81d250e189d60616f86 to your computer and use it in GitHub Desktop.
(defn fizzbuzz [start end]
(doseq [n (range start end)]
(cond
(zero? (mod n 15)) (println "FizzBuzz")
(zero? (mod n 5)) (println "Buzz")
(zero? (mod n 3)) (println "Fizz")
:else (println n))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment