Thought it might be fun to start a code golf competition. Since this is a Delphi community what better to start off with than Pascal's triangle?

Thought it might be fun to start a code golf competition. Since this is a Delphi community what better to start off with than Pascal's triangle?

Write a program that takes a positive integer n from the command line and produces n rows of Pascal's triangle.

Example:
c:\Pascal.exe 7
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1

Entries must:
Be written entirely in Pascal (no asm)
Compile with the Delphi compiler
Produce correct output for up to 35 rows of the triangle

Entries must not:
Rely on any external resource (data files, external programs, etc)

The winning entry will be the one with the shortest source code measured in number of characters.

Comments