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 Planc

(99bottles of beer with Planc ND-100)

Date:10/13/09
Author:Jonny Oddene
URL:http://www.sintran.com
Comments:0
Info:n/a
Score: (1.00 in 3 votes)
% tab p
% Planc ND-100 version of 99 bottles of beer
% Jonny Oddene, http://www.sintran.com/sintran.html
%
module bottles

integer         : bottle
integer array   : stack (0:1000)

program : bottles
    inistack stack

    for bottle in reverse (1:99) do
      output (1, 'i', bottle)
      output (1, 'a', ' bottle(s) of beer on the wall,$')
      output (1, 'i', bottle)
      output (1, 'a', ' bottle(s) of beer.$')
      output (1, 'a', 'Take one down, pass it around,$')
      output (1, 'i', bottle-1)
      output (1, 'a', ' bottle(s) of beer on the wall.$ $');
    endfor
endroutine bottles
endmodule
$eof

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: