// guess the programming language of the day

$ whois pascal

Pascal

first released in 1970 · by Niklaus Wirth

$ guessprog --inspect pascal

year
1970
paradigm
procedural
family
pascal
memory
manual
binding
static
safety
strong

PASCAL(7)

AUTHORS
Niklaus Wirth
HISTORY
Niklaus Wirth designed Pascal at ETH Zurich and published it in 1970, after the ALGOL committee rejected his simpler proposal in favour of what became ALGOL 68. He wanted a small, clean language to teach structured programming, with strong static types and nothing that hid what the machine was doing. UCSD Pascal brought it to microcomputers through a portable p-code virtual machine, and Borland's Turbo Pascal, written by Anders Hejlsberg in 1983, made it hugely popular on PCs thanks to its speed and low price.
USAGE
Pascal was the main teaching language of the 1980s and early 1990s, and early Apple Macintosh software was written in it. Today it survives through Free Pascal, the Lazarus IDE and its object-oriented descendant Delphi, and still appears in some schools.
SEE ALSO
Pascal on Wikipedia ↗
$ cat squares.pas
program Squares;

type
  TScores = array[1..5] of Integer;

var
  Scores: TScores;
  I, Total: Integer;
begin
  Total := 0;
  for I := 1 to 5 do
  begin
    Scores[I] := I * I;
    Total := Total + Scores[I];
  end;
  WriteLn('Sum of squares: ', Total);  { 55 }
end.