This may print the Pascals Triangle as much as ‘n’ strains. I created the Matrix of nXn Matrix. Then initilized all of the factor to zero. Then Calculated the Mixture of i,j utilizing the system:
C(n,r)=n!/(r!*(n-r)!)
Earlier than that I calculated the Factorial of a quantity through the use of a recursive Perform.