Pascal triangle 1

tell little hint about this question

@khemchandrs A little hint :
You need to know about factorials and binomial theorem for solving this problem.

explain somethig about this problem how can i do

Lets assume that every row in this pattern is represented by β€˜i’ and every column in a row is represented by β€˜j’. Then every number is represented by iCj(just like nCr from permutations and combinations), where i and j, both starting from 0.

in bionomial theorem only combination used . not use permutation

https://ide.codingblocks.com/s/132544 this link my program after how can i solve it

(TOPIC POINTER ) https://ide.codingblocks.com/s/132562 this link my program it don’t print any thing ( ( *char)s1 ) in line 8,10.,12

@khemchandrs in your pascal triangle code change the condition of loop to the following and your code will work fine. Here change your loop condition to : (int j = 0; j <=i; j++)

@khemchandrs I would suggest you to post your TOPIC POINTER doubt using the ask doubt section.

in pascal triangle i do j=0;j<=i;j++

in pascal triangle i do j=0;j<=i;j++ but it does not show proper space separated output and send me code of this problem

the logic you are using is perfectly correct. The output you are getting is also correct.

here is the code

i have already do the this step after how can move this number according to question pattern

You dont have to move the numbers according to question pattern. That is just for the good presentation. This is the correct solution.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like