...

/

Example 40: Pascal's Triangle

Example 40: Pascal's Triangle

Learn how to print a Pascal's triangle.

We'll cover the following...

Problem

Write a program to generate Pascal’s triangle pattern shown below:

11

1   11 \space\space \space 1

1   2   11 \space \space\space 2 \space \space\space 1 ...