Skip to content

Instantly share code, notes, and snippets.

@tatut
Created April 2, 2020 08:41
Show Gist options
  • Save tatut/06ad4925342f584d49fb6b850a5bbd06 to your computer and use it in GitHub Desktop.
Save tatut/06ad4925342f584d49fb6b850a5bbd06 to your computer and use it in GitHub Desktop.
Write a short program that returns a sequence of numbers from 1 to 100.
- For each multiple of 3, return "Fizz" instead of the number.
- For each multiple of 5, return "Buzz" instead of the number.
- For numbers which are multiples of both 3 and 5, return "FizzBuzz" instead of the number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment