Pascal

From SwinBrain

Pascal is the name of a general purpose procedural programming language.

Contents

Hello World in Pascal

The classic programming example, used as a first trial. Say hello to programming with Pascal.

program HelloWorld;
begin
  WriteLn('Hello World');
end.

This can be simplified to just:

begin
  WriteLn('Hello World');
end.

Variable declaration: This shows variable declaration and use in Pascal.

program SillyName;
{ This program displays different messages
based upon a name that is entered by the user. }
var
  name : String;	//The name of the user running the program
begin
  Write('Please enter your name: ');
  ReadLn(name);
	
  if name = 'Fred' then
  begin
    WriteLn('What a nice name');
  end
  else
  begin
    WriteLn('Well that is a silly name');
  end;
end.

Pascal Development Tools

Various Pascal compilers are available for different systems.

You can also download the Turbo Delphi IDE from Borland

Pascal Articles

Pascal Language

Further Information

You can also find the following online material related to introductory Pascal.

[edit]Language: C | Objective C | C++ | C# | Java | Pascal | Perl | PHP | Python | Visual Basic | more to come

Sample Code » C | C++ | .NET | Pascal | Perl | T-Sql | XHTML | Python | others to come