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 Algae

Date:09/15/05
Author:caminoix
URL:http://p2p.info.pl
Comments:0
Info:http://algae.sourceforge.net/
Score: (2.72 in 153 votes)
#Algae is a programming language for numerical analysis. It has been applied to problems
#in aerospace and related fields for more than a decade. - http://algae.sourceforge.net/

#If you like this script, I would be most grateful if you could visit
#http://p2p.info.pl/eng/index.php and click a Google ad ;)

for (count in 99:2){
  if (count>2) {s="s"; else s="";}
  printf(string(count)+" bottles of beer on the wall, "+string(count)+" bottles of beer.\n");
  printf("Take one down and pass it around, "+string(count-1)+" bottle"+s+" of beer on the wall.");
  printf("\n\n");
}
printf("1 bottle of beer on the wall, 1 bottle of beer.\n");
printf("Take one down and pass it around, no more bottles of beer on the wall.\n\n");
printf("No more bottles of beer on the wall, no more bottles of beer.\n");
printf("Go to the store and buy some more, 99 bottles of beer on the wall.\n\n");

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: