Skip to content

Instantly share code, notes, and snippets.

@shawnritchie
Last active May 27, 2016 06:50
Show Gist options
  • Save shawnritchie/e5bc6570aa68b01c2443520cec43bdc7 to your computer and use it in GitHub Desktop.
Save shawnritchie/e5bc6570aa68b01c2443520cec43bdc7 to your computer and use it in GitHub Desktop.

FIZBUZ

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz” - Optimize the “FizzBuzz” problem - Design test cases for the “FizzBuzz” problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment