title: Printing only NON-BOUNDARY and CORNER elements of an (n*n) array
body: <p>I am to write a program that prints ONLY the NON-BOUNDARY AND CORNER elements of an (n*n) array, for my assignment, and this is the main part of the code:
  <a href="https://i.stack.imgur.com/IOlFy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IOlFy.png" alt="enter image description here"></a></p>
  
  <p>The output I am getting is this:
  <a href="https://i.stack.imgur.com/187iO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/187iO.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the non-boundary elements (6,7,10,11) are not in their correct positions, which I believe, is because of incorrect printing of tab spaces within the loop. (My code is totally a mess)  I would like some help or suggestions to fix this. Thanks!</p>