Skip to content

Instantly share code, notes, and snippets.

View bsturdivan's full-sized avatar

Brian Sturdivan bsturdivan

View GitHub Profile
@bsturdivan
bsturdivan / gist:1345588
Created November 7, 2011 17:25 — forked from jeffmicklos/gist:1329185
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
**All variable names and location of their definitions matter