Language PascalX
(standard version)
| Date: | 04/20/05 |
| Author: | Philipp Winterberg |
| URL: | http://www.winterbergs.de/ |
| Comments: | 2 |
| Info: | http://www.readyideas.com/pascalx.htm |
| Score: |
{ PascalX [English] version of 99 Bottles of beer (Bottles.pas) }
{ See http://www.readyideas.com/pascalx.htm for more infos }
{ Philipp Winterberg, http://www.winterbergs.de }
program Bottles; var b: bigint; a, c: string[20];
begin
a:= ' bottle(s) of beer'; c:= ' on the wall';
for b:=99 downto 1 do
writeln(b, a, c, ', '+chr(13)+chr(10), b, a, '.'+
chr(13)+chr(10)+'Take one down, pass it around,'+
chr(13)+chr(10),(b-1),a,c,'.'+chr(13)+chr(10))
end.
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