title: I need to split code in C for Gauss elimination method
body: <p>Hello I have to split code below on 4 four files (i'm working  in visual studio). I really don't know how to do it, so I'm asking You guys for help. Thanks in advance.</p>
  
  <p>Header.h (which I have)</p>
  
  <pre><code> #include &lt;stdlib.h&gt;
   #include &lt;conio.h&gt;
  </code></pre>
  
  <p>main.c</p>
  
  <p>data.c</p>
  
  <p>solve.c</p>
  
  <pre><code> #include "Header.h"
  
   void main(void) 
   { 
       int i,j,k,n;
       float A[20][20],c,x[10],sum=0.0;
       printf("\nEnter the order of matrix: ");
       scanf("%d",&amp;n);
       printf("\nEnter the elements of augmented matrix row-wise:\n\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&gt;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];
                  }
              }
          }
      }
      x[n]=A[n][n+1]/A[n][n];
      for(i=n-1; i&gt;=1; i--)
      {
          sum=0;
          for(j=i+1; j&lt;=n; j++)
          {
              sum=sum+A[i][j]*x[j];
          }
          x[i]=(A[i][n+1]-sum)/A[i][i];
      }
      printf("\nThe solution is: \n");
      for(i=1; i&lt;=n; i++)
      {
          printf("\nx%d=%f\t",i,x[i]); 
      }
      _getch();
  }
  </code></pre>