Related to pascal triangle

my code is working for every value then also when i submited it showed none of the test case was right. plz check

hello @avverma11057
image
here it should be n-i+1

check ur updated code->

sir my is also working why there is a neeed to change it ?? it only shows error when i submit otherwise output is coming

to match the output format u need to print one extra space that why there is + 1 in the condition

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.