Pascals triangle

I am getting the correct output but don’t know why the test cases are getting wrong

  1. you need not handle this
    if(n<10{
    }
    because it is a information given to you
    you need not to check this
    it will always holds true

image
there is a tab in front of every row
that you also have to include

i have done all the changes for you now it is passing all testcases
you can check them below

Modified Code

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.