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: |
% 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
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!
Comments