+ 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

27th Feb 2020, 9:10 PM
Amal Gil
Amal Gil - avatar
1 Respuesta
+ 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
29th Feb 2020, 7:54 AM
Sumit Singh
Sumit Singh - avatar