/fizzbuzz

Write a program that prints the numbers from 1 to 100. But for multiples of 3 print "Fizz" instead of the number and for the multiples of 5 print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

Primary LanguageClojure

fizzbuzz

Write a program that prints the numbers from 1 to 100. But for multiples of 3 print "Fizz" instead of the number and for the multiples of 5 print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

Usage

lein run -m fizzbuzz.core

Inspiration

http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html

Time: less than 10 minutes, most spent trying to figure out the Clojure if/else syntax properly.