Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created April 25, 2013 13:14
Show Gist options
  • Select an option

  • Save efleming969/5459600 to your computer and use it in GitHub Desktop.

Select an option

Save efleming969/5459600 to your computer and use it in GitHub Desktop.

Rules

Print numbers from 1 to 60 For multiples of three print "Fizz" instead of the number For Multiples of five print "Buzz" instead of the number For Multiples of three and five print "FizzBuzz" instead of number

Sample Output

1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz ... etc

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