I got the logic but dont know how to code it

I got the logic but dont know how to code it…

what is your logic??
what difficulty you find while coding?

you can also check my code

is your doubt resolved now??

Please explain line 18.

num=num*(i-j+1)/(j-1);

this is the formula to generate pascal triangle elements
you can verify this by puting values of i and j

So i have to memorize it?

yes you can remember it

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.

please share the code if possible

@ishayadav092001_5692c65fe727bbd4

Ok got it, thank you.

1 Like

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.