Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Oh the humanity.
for (var i = 1; i <= 100; i++) {
if (i % 3 == 0 && i % 5 == 0) {
print "FizzBuzz";
} else if (i % 3 == 0) {
print "Fizz";
} else if (i % 5 == 0) {
print "Buzz";
} else {
print i;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.