view src/bob.c @ 8410:561c5f0d6b8b

<shachaf> le/rn bicyclic monoid/The bicyclic monoid is the free monoid generated by two wheels of a bicycle, quotiented by the restriction that the bicycle itself is equal to the identity.
author HackBot
date Wed, 08 Jun 2016 10:46:44 +0000
parents f9fd2ce12a6e
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");}}