public
Created

fizzbuzz in clojure

  • Download Gist
fizzbuzz.clj
Clojure
1 2 3 4 5 6 7 8
(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)))))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.