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 GNU Octave

Date:05/30/05
Author:Jan Pitann
URL:n/a
Comments:0
Info:http://www.octave.org/
Score: (2.93 in 15 votes)
% 99 bottles for GNU Octave
% free alternativ for Mathlab
% see more: http://www.octave.org/
% Dec 4th 2004 - Jan Pitann

i=99;
str0='No more';
str1=' bottle';
str2='s';
str3=' of beer on the wall, ';
str4=' of beer\n';
str5='Take one down pass it around\n';
str6='go to the store an by one more...';

while (i>1)

disp([int2str(i) str1 str2 str3 int2str(i) str1 str2 str4 str5])
    i=i-1;
end

disp([int2str(i) str1 str3 int2str(i) str1 str4 str5])

disp([str0 str1 str2 str3 str6 '\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: