Skip to content

Instantly share code, notes, and snippets.

@madson
Created May 7, 2013 14:49
Show Gist options
  • Save madson/5533176 to your computer and use it in GitHub Desktop.
Save madson/5533176 to your computer and use it in GitHub Desktop.
matrix.c
#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