MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vda9j/deleted_by_user/cerwrmh/?context=3
r/ProgrammerHumor • u/[deleted]
[deleted] — view deleted post
446 comments sorted by
View all comments
Show parent comment
1
bool bMod3; for(int apple = 1; apple < 101; ++apple){ bMod3 = (apple % 3) == 0; if(bMod3){ std::cout << "Fizz"; } if((apple % 5) == 0){ std::cout << "Buzz"; }else if(!bMod3){ std::cout << apple; } std::cout << std::endl; }
View all comments
Show parent comment
1
u/Xiver1972 Jan 17 '14