Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int i;
- for (i = 1; i <= 100; i++) {
- if (i % 3 != 0 && i % 5 != 0) {
- printf("%d\n", i);
- continue;
- }
- if (i % 3 == 0) {
- printf("Fizz");
- }
- if (i % 5 == 0) {
- printf("Buzz");
- }
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement