20 lines
307 B
C
20 lines
307 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(int argc, char * argv[])
|
||
|
{
|
||
|
int i = 0;
|
||
|
|
||
|
for (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("%d\n", i);
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|