/fizz-buzz

Sample and open source implementations of FizzBuzz in several languages

Primary LanguageShellMIT LicenseMIT

fizz-buzz

Sample and open source implementations of FizzBuzz in several languages, under the permissive MIT / Expat licence.

Build Status

What is FizzBuzz?

In short, FizzBuzz is a simple programming task, which most decent programmers are expected to be able to easily write, but, reportedly, most interviewed software development candidates cannot write it. It's a kind of litmus test for programmers.

For more information, see:

Description of the problem

Print the natural numbers from 1 to 100, one in each line, but if the number is divisible by 3 print "Fizz" (without the quotes) instead and if it is divisible by 5 print "Buzz" instead and if it is divisible by both 3 and 5, print "FizzBuzz".

Features of this project

  • Licensed under the permissive MIT / Expat licence.
  • Contains implementations in several popular and not-so-popular languages including C, Python, Perl 5, Ruby, sh, Java, C#, Awk, Scheme, D, Go, Rust, and Haskell.
  • Implementations are modular but not over-engineered.
  • Contains a test suite and uses Travis-CI.

Links

  • fizzbuzz by anglus - under the ISC licence and public domain, but the output is in all lowercase.