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 SuperCollider

(Ugly)

Date:06/21/07
Author:sutashu
URL:n/a
Comments:2
Info:http://supercollider.sourceforge.net/
Score: (2.33 in 3 votes)
bottlefunction = {arg n; 
	Post << (n>0).if(n, {"no more"}) << " bottle" << (n>1 or: n==0).if({"s"}, {""}) << " of beer";
};

99.for(1,{arg i;
	bottlefunction.value(i);
	Post << "on the wall, ";
	bottlefunction.value(i);
	".".postln;
	Post << "Take one down and pass it around, ";
	bottlefunction.value(i-1);
	" on the wall.".postln;
});

"No more bottles of beer on the wall, no more bottles of beer".postln;
Post << "Go to the store and buy some more, ";
bottlefunction.value(99);
"on the wall".postln;

Download Source | Write Comment

Alternative Versions

Comments

>>  HelenCy27 said on 02/22/10 03:24:17

HelenCy27 Lots of various people get know a technique of definition essay creating, but that doesn't mean they can compose superior quality research papers, but a <a href="http://quality-papers.com">essay writing service</a> can aid to compose the term paper of A+ quality and show writing ability of some students.

>>  BrookeELLIS22 said on 02/28/10 03:32:25

BrookeELLIS22 That's known that money makes people independent. But what to do when someone does not have money? The only one way is to get the <a href="http://lowest-rate-loans.com/topics/business-loans">business loans</a> or small business loan.

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: