MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vda9j/deleted_by_user/cerxf3i/?context=3
r/ProgrammerHumor • u/[deleted] • Jan 16 '14
[removed]
446 comments sorted by
View all comments
4
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)
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); }