Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Polyglot FizzBuzz excercise
Clojure Racket Erlang Scheme Ruby Haskell
Branch: master
Pull request Compare This branch is 21 commits behind NashFP:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
BartJongejan+bracmat
bryan_hunter+erlang
calvinb+haskell
calvinb+scheme
drewr+clojure
mspspeak+racket
phillipscaleb+clojure
vinbarnes+ruby
wilkesj+nodejs
readme.md

readme.md

NashFP polyglot fizzbuzz excercise

FizzBuzz was popularized in programming circles by this post from Jeff Atwood http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html

The idea is you count from 1 to 100. If the number is evenly divisible by 3 you say "Fizz" instead of the number. If the number is evenly divisible by 5 you say "Buzz" instead of the number. If the number is evenly divisible by both 3 and 5 you say "FizzBuzz" instead of the number.

So the numbers from 1 to 20 would be read like so: 1,2,Fizz,4,Buzz,Fizz,7,8,Fizz,Buzz,11,Fizz,13,14,FizzBuzz,16,17,Fizz,19,Buzz

Contribute your solution by adding a folder name {your twitter handle}+{your language} such as "bryan_hunter+erlang".

Enjoy.

Something went wrong with that request. Please try again.