title: undestanding c program gauss-jordan elimination
body: <p>i know i sound stupid but i really need to understand the gauss-jordan elimination c program. i already try to understand the coding but it's still confusing for to read the code line by line.Especially the  for(j=1; j&lt;=n; j++) loop.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main()
  {
  int i,j,k,n;
  float A[20][20],c,x[10];
  printf("\nEnter the size of matrix: ");
  scanf("%d",&amp;n);
  printf("\nEnter the elements of augmented matrix row-wise:\n");
  for(i=1; i&lt;=n; i++)
  {
      for(j=1; j&lt;=(n+1); j++)
      {
          printf(" A[%d][%d]:", i,j);
          scanf("%f",&amp;A[i][j]);
      }
  }
  
  for(j=1; j&lt;=n; j++)
  {
      for(i=1; i&lt;=n; i++)
      {
          if(i!=j)
          {
              c=A[i][j]/A[j][j];
              for(k=1; k&lt;=n+1; k++)
              {
                  A[i][k]=A[i][k]-c*A[j][k];
              }
          }
      }
  }
  printf("\nThe solution is:\n");
  for(i=1; i&lt;=n; i++)
  {
      x[i]=A[i][n+1]/A[i][i];
      printf("\n x%d=%f\n",i,x[i]);
  }
  return(0);
  }
  </code></pre>