Language TeX/LaTeX
Date: | 04/20/05 |
Author: | Craig J. Copi |
URL: | n/a |
Comments: | 4 |
Info: | n/a |
Score: | ![]() |
%% TeX/LaTeX version of 99 bottles of Beer %% %% Craig J Copi - copi@oddjob.uchicago.edu %% \parindent=0pt \newcount\beercurr \def\beer#1{\beercurr=#1\let\next=\removebeer\removebeer} \def\removebeer{ \ifnum\beercurr>1 \the\beercurr\ bottles of beer on the wall,\par \the\beercurr\ bottles of beer,\par take one down, pass it around,\par \advance\beercurr by -1 \the\beercurr\ bottle\ifnum1<\beercurr{s}\fi\ of beer on the wall.\par \vskip 2ex\relax \else 1 bottle of beer on the wall,\par 1 bottle of beer,\par take one down, pass it around,\par no bottles of beer on the wall.\par \vskip .5ex Time to buy some more beer\ldots. \let\next=\relax \fi \next} \beer{99}
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
Does anyone ever test the programs posted here?
And dude, of course we don't have to time to check all this old stuff. We do this in our free time.
BTW, anything free comes with no guarantee.