Skip to content

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".

Notifications You must be signed in to change notification settings

cacoco/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published