I need to fill a 2 dimensional array, however in need to the 2 outermost sides to be filled with ones and the rest with zeros.
11111111111111111111
11111111111111111111
11000000000000000011
11000000000000000011
11000000000000000011
11000000000000000011
11000000000000000011
11000000000000000011
11111111111111111111
11111111111111111111
Like this. How can I set up a loop for this?
I have tried looping it myself, but I am not the best with 2d arrays.