Pascal Triangle 1

my code is showing correct answer but its not getting accepted
here is my code https://ide.codingblocks.com/s/326526

hi @jatinupadhyay786,
Your code is correct,
but there is some mistake in showing the output.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
This is how the output should look like to get solution accepted.
Please let me know if there is any other doubt.


Bro its should look like this and im getting the same output

can u please check it once more please

hi @jatinupadhyay786,
firstly i also got confused with same thing.
Output should look like this.


I have myself submitted this question.

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.