File PASCAL.PS
Directory of image this file is from
This file as a plain text file
PROGRAM PASCAL(OUTPUT);
CONST N = 13;
VAR I,J: INTEGER;
A: ARRAY[1..N] OF INTEGER;
BEGIN
FOR I := 1 TO N DO
BEGIN A[I] := 1;
FOR J := I-1 DOWNTO 2 DO
A[J] := A[J-1] + A[J];
WRITE(" ":2*(N-I)+1);
FOR J := 1 TO I DO WRITE(A[J]:4);
WRITELN
END
END.
Feel free to contact me, David Gesswein djg@pdp8online.com
with any questions, comments on the web site, or if you have related equipment,
documentation, software etc. you are willing to part with. I am
interested in anything PDP-8
related, computers, peripherals used with them, DEC or third party, or
documentation.
PDP-8 Home Page
 PDP-8 Site Map
 PDP-8 Site Search