My code is not working

hello @Anku47
please mention the question as well , i dont have link for this problem

image
here u have closed the while loop in line 11.
but i think it should be aftet 29.

still not working sir

pls share the question with me .

check line no 12 if statement. u have not closed it .
u should close that block before else statement

given n, print the pattern. for eg: n=6. for every odd row there should be only 1 and for even row there should be 1 at start and 1 at end and the remainin central part should be 0
1
11
111
1001
11111
100001

did u make the correction , that i said just now

yes sir but still not working

while(condition){
    if( condition) {


    } else {


   }

}

you were not closing the blocks properly . this is correct structure.
have done similar thing in ur code.

thank u sir.it’s working now. and how to mark the question status resolved?

go to the tab from where u have raised it .
there some option will be given to mark it as resolved (dont know exactly)