r/ProgrammerHumor •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/giggsy664 Jan 17 '14

Oh jesus yeah I properly butchered that code

for (int i = 1; i<=100; i++)
{
	if (i%3==0 && i%5==0)
		System.out.println("FizzBuzz");
	else if (i%3==0)
		System.out.println("Fizz");
	else if (i%5==0)
		System.out.println("Buzz");
	else
		System.out.println(i);
}

Allll better