title: Making a table with generated array C- programming
body: <p>My program should ask user how many numbers he wanna input in the array , and than input one by one. Any number that's higher than 99 should be replaced by '0'.</p>
  
  <p>That part works fine. But in the end created array should be placed in the table which needs to be in format (5 columns / depending rows).</p>
  
  <p>This is what I wrote:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  #define MAX 80
  
  int main()
  {
    int n = 0;
    int i,j;
    int field[MAX]={0};
  
    printf("how many numbers do u want to input? ");
    scanf("%d",&amp;n);
  
  
  
    for ( i = 0; i &lt; n; i++)
    {
      printf("Input number %d: ",i+1);
      scanf("%d",&amp;field[i]);
      if(field[i] / 100 &gt;= 1 )
      {
        field[i] = 0;
      }
    }
  
    for ( i = 0; i&lt;n; i++)
    {
      printf("\nfield[%d] = %d\n", i, field[i]);
    }
    for(i=0; i &lt;= 5;i+=5)
    {
      for(j =i; j &lt;n;j++)
      {
        printf("%d ",field[j]);
      }
      printf("\n");
    }
  
    return 0;
  }
  </code></pre>