Requirements:
- The program should take an integer input,
n, which represents the number of rows in the Pascal’s Triangle.
- It should display the Pascal’s Triangle in a formatted manner, where each row contains the binomial coefficients.
- The output should be properly aligned to form a triangle shape.
Example:
For an input of 5, the output should be:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1