Mercurial > repo
view 71ab5gx8 @ 7637:62e9db64acb2
<int-e> le/rn tribble/99 tribbles on the wall, take one down, pass it around, 117 tribbles on the wall.
author | HackBot |
---|---|
date | Sun, 01 May 2016 17:08:36 +0000 |
parents | b81e1c7ba347 |
children |
line wrap: on
line source
#include <stdio.h> int main(){int i=100;while(--i){printf("%i bottle%s of beer in the wall,\n%i bo" "ttle%s of beer.\nTake one down, pass it round,\n""%s%s\n\n",i,i?"s":"",i,i?"s": "",(i-1)?(char[]){(((i-1)/10)?((i-1)/10+'0'):((i-1)%10+'0')),(((i-1)/10)?((i-1)% 10+'0'):' '),(((i-1)/10)?' ':'{TEXT}'),'{TEXT}'}:"",(i-1)?"bottles of beer in the wall": "No more beers");}}