#include using namespace std; int main() { int mat_size,i,j,step; cout<<"Matrix size: "; cin>>mat_size; double mat[mat_size+1][mat_size+1], x[mat_size][mat_size+1]; cout<>mat[i][j]; //Enter (mat_size*mat_size) value of the matrix. } } for(step=0;step=0;i--) { double sum = 0; for(j=mat_size-1;j>i;j--) { x[i][j] = x[j][j] * x[i][j]; sum = x[i][j] + sum; } if(x[i][i]==0) x[i][i] = 0; else x[i][i] = (x[i][mat_size] - sum)/(x[i][i]); cout<<"x"<