Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char** argv) {
  4.  
  5. for(int i = 1; i <= 100; i++) {
  6. if(i % 15 == 0) printf("FizzBuzz\n");
  7. else if(i % 3 == 0) printf("Fizz\n");
  8. else if(i % 5 == 0) printf("Buzz\n");
  9. else printf("%d\n", i);
  10. }
  11.  
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment