+ 2
Please help to understand this code of printing Pascal triangle
Helping me to understand the concept of pascal triangle https://code.sololearn.com/c2RXBdwnqbZT/?ref=app https://code.sololearn.com/cQqxh6PgwOKY/?ref=app
1 ответ
+ 1
Let's take example of r =2
Output will be
1
1 1
In row 0 we have on space
And row 1 we have 0 space so function for space is simply no. of row-1.
Pascal triangle is used in binomal expression and each of elements can be calculated using it's formula to understand Pascal triangle see this video
https://youtu.be/sNTnEZCoiqo