void fizzbuzz(int limit) {
for (int i = 1; i <= limit; ++i) {
if (i % 3 == 0) {
printf("Fizz");
}
if (i % 5 == 0) {
printf("Buzz");
}
if (i % 3 0 || i % 5 0) {
printf("\n");
} else {
printf("%d\n", i);
}
Message too long. Click here to view full text.