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 SALT

Date:05/22/05
Author:Mike Gogulski
URL:n/a
Comments:4
Info:http://www.telix.com/delta/deltacom/tfd/
Score: (1.23 in 26 votes)
// SALT version of 99 Bottles of beer
// By Mike Gogulski <mike@gogulski.com> 21 March 2005
// SALT is the scripting language of Telix, a terminal program for MS-DOS
//
// Tested with:
//   Telix v3.51 (http://www.telix.com/delta/deltacom/tfd/)
//   under Windows 2000 (http://www.microsoft.com/)
//
// Save as 99bottlz.slt in your Telix directory, compile with Ctrl-F9,
// start with Alt-G
 
main() {
 int c = 99;
 while (c > 0) {
  printn(c);
  prints(" bottle(s) of beer on the wall,");
  printn(c);
  prints(" bottle(s) of beer!");
  prints("Take one down, pass it around,");
  c = c - 1;
  printn(c);
  prints(" bottle(s) of beer on the wall!");
 }
}

Download Source | Write Comment

Alternative Versions

Comments

>>  Steve said on 09/28/06 02:03:27

Steve I just knew SALT would not be represented here, then found it. Telix will always be the best terminal software ever written for DOS, complete with its own programming language.

>>  Paul said on 09/29/06 13:54:40

Paul Yeah, it's just too bad you didn't take the time to get the plurals right.

>>  Gordon E. Peterson II said on 08/14/07 20:04:47

Gordon E. Peterson II Yeah, and more to the point, he didn't get the "no nore" or the entire last verse right either, according to the site's "official lyrics". This particular exercise is where the devil is in all the little details.

FWIW, I actually rather liked SALT too, so am disappointed that it wasn't represented by a more correct entry.

>>  barrym said on 05/14/10 05:10:48

barrym Unfortunately, incomplete or incorrect programs are infesting
this website, and you are looking at an example from the second
worst offender (Winterberg being the worst). My negative
comments were met with a glib response from Mike, who clearly
knows much more about programming than I do, but much less
about programming to a clearly published specification. The
website masters are letting it through, so it's up to you guys
to submit a more correct entry. I'll give you a good vote, for
whatever it's worth. :-)

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: