Language DAL
Date: | 04/20/05 |
Author: | Georg Hentsch |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (2.50 in 2 votes) |
Apple's Data Access Language /* DAL version of 99 Bottles of beer programmer: by Georg Hentsch: ghentsch@blsoft.com */ declare integer beers = 99; declare varchar s; while (beers > 0) { if (beers != 1) s = "s"; else s = ""; printf("%d bottle%s of beer on the wall,\n", beers, s); printf("%d bottle%s of beeeeer . . . ,\n", beers, s); printf("Take one down, pass it around,\n"); beers--; if (beers > 0) printf("%d", beers); else printf("No more"); if (beers != 1) s = "s"; else s = ""; printf(" bottle%s of beer on the wall.\n", s); }
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