Please help me out sir!

Sir , unable to print the middle zeros , please give me little more intuition regarding this !!

Hey @piyushkumar999999
In the given pattern for every odd number row print 1, odd number of times and for every even number row ,print first and last character as 1 and rest of middle characters as 0 .

Haha that i understand by the explanation in the question , i’m not getting the correct approach to resolve this question … let me try me once again if any error comes over , i will then ask you later …thanks sir !!

Okay …

Sir only able to print the basic pattern and unable to make the logic , try to help me out https://ide.codingblocks.com/s/357157

Hey @piyushkumar999999
Refer to this : https://ide.codingblocks.com/s/357182

If this resolves your query then please mark it as resolved :slight_smile:

hi @piyushkumar999999 is your doubt resolved?

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.