Created
November 29, 2013 17:35
-
-
Save kevincox/7709214 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 def int | |
#define beer main(int i){char b[1024]; | |
#define print(v) print(int v){ | |
#define end ;} | |
#define if(x) fputs(b,stdout); fgets(b,1024,f); if(x){ | |
#define else ;} else{ | |
#define puts | |
#define print | |
#define open(fn) FILE *f = fopen(fn,"r"); | |
#define while(x) fgets(b,1024,f); while(!feof(f)){ | |
def beer | |
# define beer | |
open("test.c") | |
i=100; | |
while ( i >= 0 ) | |
if ( i > 0 ) | |
print "#{i} bottle#{i==1&&''||'s'} of beer on the wall, " | |
puts "#{i} bottle#{i==1&&''||'s'} of beer." | |
print "Take one down and pass it around, " | |
puts "#{i-1} bottle#{i==2&&''||'s'} of beer on the wall." | |
puts | |
else | |
puts "No more bottles of beer on the wall, no more bottles of beer." | |
puts "Go to the store and buy some more, 99 bottles of beer on the wall." | |
end | |
i -= 1 | |
end | |
return 0 | |
end | |
beer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment