Skip to content

Instantly share code, notes, and snippets.

@mathieueveillard
Last active October 8, 2021 09:55
Show Gist options
  • Save mathieueveillard/cda8b1374100e54f100543da70e33088 to your computer and use it in GitHub Desktop.
Save mathieueveillard/cda8b1374100e54f100543da70e33088 to your computer and use it in GitHub Desktop.

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”.

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