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 ChucK

(Audio synthesis and sequencing langugae)

Date:10/21/06
Author:Burton Samograd
URL:http://www.myspace.com/kruhft
Comments:0
Info:http://chuck.cs.princeton.edu/
Score: (2.90 in 10 votes)
for (99 => int i; i >= 0; i--) {
	if(i > 1) {
		<<< i, "bottles of beer on the wall", i, "bottles of beer." >>>;
		<<< "Take one down and pass it around,", i-1, "bottles of beer on the wall" >>>;
	} else if (i == 1) {
		<<< i, "bottle of beer on the wall", i, "bottle of beer." >>>;
		<<< "Take one down and pass it around,", "no more bottles of beer on the wall" >>>;
	} else {
		<<< "No more bottles of beer on the wall,", "no more bottles of beer." >>>;
		<<< "Go the the store and buy some more,", "99 bottles of beer on the wall" >>>;
	}
	<<< "", "" >>>;
};

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: