Fizz Buzz in Every Language

Fizz Buzz in Every Language Featured Image

As the Sample Programs in Every Language collection grows, I’ve been compelled to add another project to the series: Fizz Buzz in Every Language.

Table of Contents

What is Fizz Buzz?

For first timers, Fizz Buzz might sound like a children’s cartoon. In reality, it’s a program that has plagued developers in interviews for ages. In fact, there have been countless articles written on the subject:

So, what is Fizz Buzz? Well, for the purposes of the Sample ProgramsOpens in a new tab. repo, I’ve defined the rules as follows:

Write a program that prints the numbers 1 to 100. However, for multiples of three, print “Fizz” instead of the number. Meanwhile, for multiples of five, print “Buzz” instead of the number. For numbers which are multiples of both three and five, print “FizzBuzz”.

In other words, a Fizz Buzz program should have the following output:


If that seems simple enough, why not take a crack at it in one of your favorite languages? We can always use the help! Otherwise, feel free to peruse this series.

Why Fizz Buzz in Every Language?

After creating the Hello World and Reverse a String series, I wanted to expand the collection even more. Unfortunately, I was never sure which direction to take the collection, so I looked for a list of ubiquitous programs. In other words, I wanted to find a set of programs that people commonly want to know how to write. Unfortunately, Google didn’t turn up many results, so I guess that’s a writing opportunity for me.

However, in my searches, I did find two other program collections:

Of course, Fizz Buzz is much easier than 99 Bottles of Beer, so I decided to start with that. Perhaps in the future, we can add 99 Bottle of Beer to the collection.

An Alphabetical List of Languages

As usual, here’s a list of articles organized alphabetically:

  1. Fizz Buzz in PowerShell
  2. Fizz Buzz in Python

As always, thanks for sticking around. If there’s a language missing that you want to see, feel free to drop it down in the comments. I’m always looking to explore new languages.

Also, don’t forget to subscribeOpens in a new tab., so you can keep up with the latest articles.

Sample Programs in Every Language (44 Articles)—Series Navigation

For 100 Days of Code, I’ve decided to implement a few sample programs in as many languages as possible. Each implementation details a brief history of the language and a description of the code.

The plan for the series is to explore the major general-purpose language like Java, Python, C, C++, and C#. From there, we’ll take a look at some sample programs in web development languages like Ruby, PHP, and JavaScript. As we continue, we’ll cover proprietary languages like Swift and Objective-C. Eventually, we’ll start to tackle less popular languages like Rust, x86, and Verilog. Finally, we’ll play around with some of the esoteric languages like Brainf*ck and LOLCODE.

Who knows? Maybe the Sample Programs in Every Language series will become so popular it’ll never end. To help this series grow, consider sharing it on social media with your friends. Or, if you have a language you want to see, drop your suggestion in the comments.

Jeremy Grifski

Jeremy grew up in a small town where he enjoyed playing soccer and video games, practicing taekwondo, and trading Pokémon cards. Once out of the nest, he pursued a Bachelors in Computer Engineering with a minor in Game Design. After college, he spent about two years writing software for a major engineering company. Then, he earned a master's in Computer Science and Engineering. Today, he pursues a PhD in Engineering Education in order to ultimately land a teaching gig. In his spare time, Jeremy enjoys spending time with his wife, playing Overwatch and Phantasy Star Online 2, practicing trombone, watching Penguins hockey, and traveling the world.

Recent Posts