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 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: (1.58 in 12 votes)
{ 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

Alternative Versions

VersionAuthorDateCommentsRate
portugesePhilipp Winterberg04/20/050

Comments

>>  Jake said on 10/17/06 03:42:29

Jake Haha! Thats awesome. I'm really new to pascal, and I was wondering if you could give me some tips, like how to define a string width. Email my. Ty, gg, ttyl, Bbq and so on and so forth.

>>  jake said on 10/17/06 03:43:38

jake jakeklopp@gmail.com

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: