Skip to content

Instantly share code, notes, and snippets.

@jeffmicklos
Created October 31, 2011 22:09
Show Gist options
  • Save jeffmicklos/1329185 to your computer and use it in GitHub Desktop.
Save jeffmicklos/1329185 to your computer and use it in GitHub Desktop.
Programming 101 - if you fail this, I don't want you.
// 1) Write a loop that prints out 1 - 50
// 2) Now I want the same output but without a loop
// 3) Now if current number if a multiple of 3, print 'Fizz' instead of the number
// If it is a multiple of 5 print 'Buzz' instead of the number
// If it is a multiple of 3 and 5, print 'FizzBuzz' instead of the number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment