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 pine

(u)

Date:07/12/12
Author:uechi
URL:http://mkprog.jp/
Comments:0
Info:http://mkprog.jp/pine/help/pine.txt
Score: (2.50 in 2 votes)
i=99;
ary[0]=" bottle of beer on the wall, ";
ary[1]=" bottle of beer.\n";
ary[2]="Take one down and pass it around, ";
ary[3]=" bottles of beer on the wall.\n\n";

swary[0]="Take one down and pass it around, ";
swary[1]="Go to the store and buy some more, ";
str="no more";
for(i=i;0<=i;i--){
	if(i==1){
		print(i.ary[0].i.ary[1].swary[0].str.ary[3]);
	}elseif(i==0){
		print(str.ary[0].str.ary[1].swary[1]."99".ary[3]);
	}else{
		print(i.ary[0].i.ary[1].ary[2].(i-1).ary[3]);
	};
};

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: