Created
May 7, 2013 14:49
-
-
Save madson/5533176 to your computer and use it in GitHub Desktop.
matrix.c
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
#import <stdio.h> | |
#define ANSI_COLOR_GREEN "\x1b[01;32m" | |
#define ANSI_COLOR_RESET "\x1b[0m" | |
void printb(int n) { | |
int i; | |
for (i = 0; i < n; i++) { | |
printf("\n"); | |
} | |
} | |
int main() { | |
printf(ANSI_COLOR_GREEN); | |
printb(3); | |
printf(" Wake up, Neo."); | |
printb(3); | |
printf(" The Matrix has you..."); | |
printb(3); | |
printf(" Follow the white rabbit..."); | |
printb(3); | |
printf(" Knock knock, Neo."); | |
printb(4); | |
printf(ANSI_COLOR_RESET); | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment