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