Logic :-
In mathematics, Pascal's triangle is a triangular array of the binomial coefficients. In the Western world, it is named after French mathematician Blaise Pascal, although other mathematicians studied it centuries before him in India, Persia (Iran), China, Germany, and Italy.
Wikipedia
For printing Pascal Triangle we need to understood how to print pascal triangle the given gif shows how to print pascal triangle
Pascal Triangle helps in Probability to find outcome
Sum of the row in Pascal triangle is Power of 2
Pascal triangle Also help to Print Fibonacci Series
If you really want to print Pascal Number just do one thing
11^0=1 (1)
11^5=1 5 1 0 1 0 5 1 (15101051)
All Are Pascal Number
Output:
Enter The Number of line : 5
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Enter The Number of line :
need an explanation for this answer? contact us directly to get an explanation for this answer