title: printing a square with diagonals
body: <p>I want to print this if the user typed in for example 2:</p>
  
  <pre><code>+---+ 
  |\ /|
  | X |
  |/ \|
  +---+
  </code></pre>
  
  <p>It's a square with a size of 2n+1 for each side of it if n is the number that is being typed in by the user</p>
  
  <p>I'm not allowed to use arrays or other functions for the diff coords.</p>
  
  <p>So I managed to print the first row of it like so:</p>
  
  <pre><code>for (int i = 0;i &lt; ((size * 2) + 1);i++){
      for (int j = 0; j &lt; ((size * 2) + 1);j++){
          if (i == 0 &amp;&amp; (j == 0 || j == size * 2)){
              printf("+");
          }
          else if (i == 0 &amp;&amp; j != i){
              printf("-");
          }
  
          if (i &gt; 0 &amp;&amp; (j == 0 || j == size * 2)){
              printf("|");
      }
      printf("\n");
  }
  </code></pre>
  
  <p>which prints out </p>
  
  <pre><code>+---+
  ||
  ||
  ||
  ||
  </code></pre>
  
  <p>How can i deal with spaces and the rest of the diagonals?</p>