Skip to content

Instantly share code, notes, and snippets.

@keshavsaharia
Last active February 17, 2017 05:48
Show Gist options
  • Save keshavsaharia/b4275df0afe9fbec6e12e6e1265d66a4 to your computer and use it in GitHub Desktop.
Save keshavsaharia/b4275df0afe9fbec6e12e6e1265d66a4 to your computer and use it in GitHub Desktop.
problem: Fizz Buzz

Fizz Buzz

Write a program that prints the numbers from 1 to 100. However, for multiples of three, print "fizz" instead of the number. For the multiples of five, print "buzz", instead of the number. 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