Write a program to display Pascal’s triangle.
Test Data :
Input number of rows: 5
Expected Output :
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Write a program to display Pascal’s triangle.
Test Data :
Input number of rows: 5
Expected Output :
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1