can u give me some more sample input and output for better understanding of question
Not able to understand the question
@ubaidshaikh9999,
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.