Language Harbour
(Procedural version)
Date: | 01/20/12 |
Author: | Miguel Lopes |
URL: | n/a |
Comments: | 0 |
Info: | http://www.harbour-project.org/ |
Score: | (2.00 in 1 votes) |
procedure main local nBottles for nBottles:= 99 to 2 step -1 ? ltrim(str(nBottles)), 'bottles of bear on the wall', ltrim(str(nBottles)), 'bottles of bear' ? 'Take one down, pass it around' ? ltrim(str(nBottles)), 'bottles of bear on the wall' ? next ? '1 bottle of bear on the wall, one bottle of bear.' ? 'Take one down, pass it around, no more bottles of beaar on the wall.' ? ? 'No more bottles of bear on the wall, no more bottles of bear.' ? 'Go to the store and buy some more, 99 bottles of bear on the wall.' ? wait "press a key to close the console" return
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