Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int i)
  4. {
  5.     char *s[] = {"", "fizz", "buzz"};
  6.  
  7.     for (i = 1; i <= 100; ++i)
  8.     {
  9.         if ( !printf("%s%s", s[!(i%3)], s[!(i%5) << 1]) )
  10.             printf("%d", i);
  11.  
  12.         putchar('\n');
  13.     }
  14. }
Add Comment
Please, Sign In to add comment