Classic 99 bottles of beer by smkt

main(i,j){for(i=99;i;i--){printf("%d bottle%s of beer on the wall, %d bottle%s of beer.\nTake one down and pass it around, ",i,j=i^1?"s":"",i,j);i^1?printf("%d bottle%s of beer on the wall.\n\n",i-1,i^2?"s":""):puts("no more bottles of beer on the wall.\n");}puts("No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more. 99 bottles of beer on the wall.");}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page