r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/nicholas818 Jan 20 '14 edited Apr 06 '14

+/u/CompileBot C

#include <stdio.h>

int main(void)
{
    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);
    }
    return 0;
}