title: display 25 numbers arranged 5 by 5 order
body: <p>I am having a problem arranging 25 numbers into 5 by 5 order. This is what I have so far:</p>
  
  <pre><code>int main() {
      int num,arr[100];
      int i, y, swap;
  
      num = 25;
  
      printf("Enter %d integers \n",num);
  
      for(i = 0; i &lt; 25; i++) {
          printf("\nElement %d: ", i + 1);
          scanf("%d", &amp;arr[i]);
      }
  
      for(i = 0; i &lt; ( num - 1 ); i++) {
          for(y = 0 ; y &lt; num - i - 1; y++) {
              if(arr[y] &gt; arr[y+1]) {
                  swap     = arr[y];
                  arr[y]   = arr[y+1];
                  arr[y+1] = swap;
              }
          }
      }
  
      printf("Sorted list in ascending order:\n");
      for ( i = 0 ; i &lt; num ; i++ )  
          printf("%d \t", arr[i]);
  
      getch();
  }
  </code></pre>
  
  <p>I am expecting my output will be like this.</p>
  
  <pre><code>Sorted list in ascending order:
  x x x x x
  x x x x x
  x x x x x
  x x x x x
  x x x x x
  </code></pre>