Pascal Triangle

I’m not getting this problem. Please help me out.

You just have to print a pascal’s triangle
image
Something like the above picture
You have to make the element of a lower row by adding the 2 elements just above that element and the first and last element will always be 1.

hey @gambhirrahul0 check out this article you will get hint how to solve this problem . but be careful it do not include space logic.

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.