Pattern of numbers and zeroes(continuation)

what changes we have to make in this code.

https://hack.codingblocks.com/contests/c/917/48 - this is the url of the question

https://ide.codingblocks.com/s/104380 - and this is the url of the code.

@Ayushi21 hey ayushi this question is not visible to me could you please tell me the actual title of the question so that I can help you asap.

https://ide.codingblocks.com/s/104379 - can you please check this code of this problem.

@Ayushi21 hey ayushi In this question your code is indented under i==0 so whenever you running your code i==0 satisfies and nothing is printing.

@Ayushi21 In this question you have to handle some cases
how to approach this loop
take a variable as x=-1
input n;
apply a loop i=1 up to n
if (x<1)
apply a loop from j=1 to j<=i
print 1
else
apply a loop from j=1 to j<=i
if (j==1||j==i)
print i-1
else
print 0
after this else block give a endline
and do x++;
to terminate the first condition

https://hack.codingblocks.com/contests/c/917/48 - this is the question

@Ayushi21 hey this link is not accessible by me
I have provided the approach try with the suggested one

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.