Pascal Triangle
Intro
In Pascal's Triangle each number is computed by adding the numbers to the right and left of the current position in the previous row.
1 2 3 4 5 6 |
|
Task
Compute Pascal's triangle up to a given number of rows.
The Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
1 2 3 4 5 6 7 8 9 |
|
Last update: February 13, 2021