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 GDL

(Archicad Geometric description language)

Date:05/02/08
Author:Daniele Orlandelli
URL:n/a
Comments:0
Info:http://www.graphisoft.com/products/archicad/object_technology/
Score: (3.00 in 2 votes)
!! 99 Bottles v.1.2
!! 2D script
for x=99 to 1 step -1
	if x<>1 then 
		bottle="bottles" 
	else
		bottle="bottle"
	endif
    text2 0,0,x
    text2 1,0,bottle+" of beer on the wall,"
    text2 10,0,x
    text2 11,0,bottle+" of beer"
    add2  0,-1
    text2 0,0,"take one down and pass it around,"
    add2  0,-1
    text2 0,0,x-1
	if x-1<>1 then 
		remBottle="bottles" 
	else
		remBottle="bottle"
	endif
    text2 1,0,remBottle+" of beer on the wall"
    add2  0,-1.5
next x

Download Source | Write Comment

Alternative Versions

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: