void Gauss(double a[10][10], double b[10], int n, double x[10]) { int l[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //real array (aij)nxn, (li)n; //real array allocate (si)n; int i=0; int j=0; int k=0; double r=0.0; double rmax=0.0; double smax=0.0; double xmult=0.0; double tempval =0.0; double s[10]; double sum=0.0; for (i = 0; i smax) { smax = tempval; } } s[i] = smax; } for (k=0; k rmax) { rmax = r; j=i; } } //lj=lk; //lk=lj; tempval = l[j]; l[j] = l[k]; l[k] = tempval; for (i=(k+1); i=0; i--) { sum = b[l[i]]; for (j=(i+1); j