diff --git a/FizzBuzz.c b/FizzBuzz.c new file mode 100644 index 0000000..c6d6fd3 --- /dev/null +++ b/FizzBuzz.c @@ -0,0 +1,16 @@ +#include + +int main(void) +{ + for(int i = 0; i < 100; i++) + { + if (i % 3 == 0 && i % 5 == 0) + printf("FizzBuzz\n"); + else if (i % 3 == 0) + printf("Fizz\n"); + else if (i % 5 == 0) + printf("Buzz\n"); + else + printf("%i\n", i); + } +}