Challenges ; pattern

MANMOHAN LOVES PATTERN-1

Please share what your doubt is so I can help you. If your code is showing error then please share code as well.

I am not getting this pattern . U just tell me how the pattern is observed , I will create the code myself.

I’m sorry but your doubt is not clear to me. What do you mean by ‘how the pattern is observed?’ Are you not able to see the question?

Actually I am not able to understand the logic behind the pattern.

In the given pattern for every odd number row print 1 odd number of times (1, 3, 5…) and for every even number row (0, 2, 4…) , print first and last character as 1 and rest of middle characters as 0.