blob: c24ce897c38982acafdca1b7bf9dcb334f89bd60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
int printf(const char*, ...);
int main() {
for (int i = 1; i <= 100; i++) {
if (i % 15 == 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);
}
}
|