Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define T(x) (x)%3==0
- #define F(x) (x)%5==0
- int main(){int i=1;for(;;){printf(((T(i)||F(i))?"%s\n":"%d\n"), T(i)&&F(i)?"FizzBuzz":T(i)?"Fizz":F(i)?"Buzz":i); if (i==100) break; else i+=1;}}
Add Comment
Please, Sign In to add comment