Language Rosi-SQL
Date: | 04/26/06 |
Author: | F.Döhrn |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (3.67 in 3 votes) |
procedure main field i smallint create channel sysout for i = 99 to 0 step -1 if i > 1 write(i # " bottles of beer on the wall, " # i # " bottles of beer.") if i = 2 write("take one down, pass it around, " # i - 1 # " bottle of beer on the wall.") else write("take one down, pass it around, " # i - 1 # " bottles of beer on the wall.") end elseif i = 1 write(i # " bottle of beer on the wall, " # i # " bottle of beer.") write("take one down, pass it around, no more bottles of beer on the wall.") else write("No more bottles of beer on the wall, no more bottles of beer.") write("Go to the store and buy some more, 99 bottles of beer on the wall.") end write("") end close channel sysout stop end
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