Anil Thakur

Anil Thakur

  • 604
  • 1.8k
  • 1.2m

How to get following output?

Sep 28 2016 2:45 AM
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?
 

Answers (2)