tell little hint about this question
Pascal triangle 1
@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
(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++)
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.