This will print the Pascals Triangle up to 'n' lines. I created the Matrix of nXn Matrix. Then initilized all the element to zero. Then Calculated the Combination of i,j using the formula:
C(n,r)=n!/(r!*(n-r)!)
Before that I calculated the Factorial of a number by using a recursive Function...