Fizz Buzz

The FizzBuzz problem is quite easy to explain, but not as easy to code because you can go in so many directions. It works like this:

You output numbers from 1 to 100.

For every value divisible by 3, you instead output Fizz.

For every value divisible by 5, you instead output Buzz.

For every value divisible by both 3 and 5, you instead output FizzBuzz.

I’ve seen more solutions for this programming puzzle than any other. Can you devise something clever or potentially unique? The possibilities are multitudinous!

Try this puzzle on your own and then check out my solutions.

Leave a Reply