Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language XION

Date:02/15/11
Author:Rebecca Bettencourt
URL:http://www.kreativekorp.com
Comments:0
Info:http://code.google.com/p/openxion/
Score: (2.50 in 2 votes)
on bottles start
        repeat with x = start down to 1
                if x = 1 then
                        put "1 bottle of beer on the wall,"
                        put "1 bottle of beer."
                        put "Take one down, pass it around,"
                        put "No more bottles of beer on the wall."
                else
                        put x&&"bottles of beer on the wall,"
                        put x&&"bottles of beer."
                        put "Take one down, pass it around,"
                        if x-1 = 1 then
                                put "1 bottle of beer on the wall."
                        else
                                put (x-1)&&"bottles of beer on the wall."
                        end if
                        put empty
                end if
        end repeat
end bottles

bottles 99

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment