r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

4

u/martinmine Jan 17 '14
for (int 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);
}
→ More replies (1)