Create a function which will take two parameter as integer, and will return output like this -:
xxxxxx
xoooox
xoxxox
xoooox
xxxxxx
example-:
i have a function in which i am passing two parameter like (5,6), now first parameter 5 will means 5 rows and 6 means 6 column and it should return array or something with the following output, don't forget that parameter value can be change so output should be according to the parameter but in the same format. How to do this?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Nitin SontakkeRank #264 · 9.6K reputationPosted Sep 27, 2016, 11:21 PM EDT
Anil ThakurRank #1,015 · 1.9K reputationPosted Sep 27, 2016, 11:56 PM EDT