FizzBuzz


Home | About | Projects | Twitter | Blog | GitHub | Wedding

FizzBuzz is a programming test used to filter out job applicants that can't code.

The problem looks something like this:

  1. Output all numbers from 1 to 100 (inclusive).
  2. For numbers that are divisible by 3, replace the number with "Fizz".
  3. For numbers that are divisible by 5, replace the number with "Buzz".
  4. For numbers that are divisible by both 3 and 5, replace the number with "FizzBuzz".

I will save you the trouble of Googling FizzBuzz; here are a few relevant blog posts and the Wikipedia article on it: