Mercurial > repo
diff src/bob.c @ 7765:f9fd2ce12a6e
<FireFly> ` mv 71ab5gx8 src/bob.c
author | HackBot |
---|---|
date | Wed, 04 May 2016 21:52:35 +0000 |
parents | 71ab5gx8@b81e1c7ba347 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/bob.c Wed May 04 21:52:35 2016 +0000 @@ -0,0 +1,6 @@ +#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");}} \ No newline at end of file