Pascal is an actively used programming language created in 1970.

49Years Old 18,968Users 2Jobs

Example code from the Hello World Collection:

{Hello World in Pascal}

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

Example code from Linguist:

uses
  uw27294;

var
  p : procedure;

procedure test;

begin
  p:=@test;
  writeln('OK');
end;

procedure global;
begin
  p:=nil;
  test;
  p();
end;

begin
  global;
  uw27294.global;
end.


Example code from Wikipedia:

program Printing;

var i : integer;

procedure Print(j : integer);
begin
  ...
end;

begin { main program }
  ...
  Print(i);
end.
Edit

Last updated February 11th, 2019