title: Printing values of an Array that are in odd numbers of columns and rows
body: <p>I have to create a program that prints an array with user specified number of rows and columns, and print values that are have an odd index(both the row# and column#)</p>
  
  <p>This is what I managed to write:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(int argc, char *argv[])
  {
      int r, c, i, j;
      printf("Number of rows: ");
      scanf("%d", &amp;r);
      printf("Number of columns: ");
      scanf("%d", &amp;c);
      int A[r][c];
      printf("Enter your numbers\n");
  
      for (i = 0; i &lt; r; i++) {
          for (j = 0; j &lt; c; j++)
              scanf("%d", &amp;A[i][j]);
      }
  
      for (i = 0; i &lt; r; i++) {
          printf("\n\t");
          for (j = 0; j &lt; c; j++)
              printf("%d ", A[i][j]);
      }
  }
  </code></pre>
  
  <p>If the user specifies that he wants 4 rows and 4 columns the program will print something like this:</p>
  
  <pre><code>X X X X
  X X X X
  X X X X 
  X X X X
  </code></pre>
  
  <p>How would one make so the program would print:</p>
  
  <pre><code>X   X  // prints only for odd columns (1st and 3rd)
         //  prints nothing as the index of row is even(2nd)
  X   X // same as 1st row
        // smae as 2nd row
  </code></pre>