Created
December 5, 2008 05:03
-
-
Save nakajima/32246 to your computer and use it in GitHub Desktop.
gcc -o fucker fucker.c && ./fucker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define SPACER " " | |
#define MAX_COLOR 5 | |
int main() { | |
int x; | |
int i = 1; | |
while(i) { | |
printf("\e[37m"); // white | |
printf("\e[3%dm", i); // dynamic color | |
printf("\e[7m"); // Invert foreground/background | |
printf("fu"); // Start printing word | |
for (x = 2; x < i; x++) { | |
printf("u"); | |
} | |
printf("ck\e[0m"); | |
if (i == MAX_COLOR) { | |
i = 0; | |
} | |
printf(SPACER); | |
i++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment