Skip to content

Instantly share code, notes, and snippets.

@byronmejia
Last active February 29, 2016 10:17
Show Gist options
  • Save byronmejia/a35fc3c17c3e2813521c to your computer and use it in GitHub Desktop.
Save byronmejia/a35fc3c17c3e2813521c to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
for(int i = 0; i <= 100; i++)
(i % 15) == 0 ? printf("FizzBuzz\n"):
(i % 3) == 0 ? printf("Fizz\n"):
(i % 5) == 0 ? printf("Buzz\n"):
printf("%i\n", i);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment