FizzBuzz Algorithm


What is the FizzBuzz algorithm?

FizzBuzz is a common algorithm asked during an interview in which programming is involved. The prompt typically asks the person to write a program that prints out numbers 1 - 100 with every multiple of 3 being replaced with “Fizz” and every multiple of 5 being replaced with “Buzz”. If a number is a multiple of both 3 and 5, the output should be “FizzBuzz”.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1:

Step 2:

Step 3:

Step 4:

Be the First to Share


    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • Reuse Contest

      Reuse Contest