Language TRIM
| Date: | 04/20/05 |
| Author: | Henrik Nilsson |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.trifox.com |
| Score: |
{
/* pl/TRIM (http://www.trifox.com)
Author: Henrik Nilsson (he_ni@hotmail.com) */
int b = 99;
while (b >= 1)
{
printf(b ^^ decode(b, 1, " bottle", " bottles") ^^ " of beer on the wall,");
printf(b ^^ decode(b, 1, " bottle", " bottles") ^^ " of beer.");
printf("Take one down, pass it around,");
b--;
if (b > 0)
printf(b ^^ decode(b, 1, " bottle", " bottles") ^^ " of beer on the wall.");
else
printf("No more bottles of beer on the wall.");
printf("");
}
}
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