Professional Documents
Culture Documents
Gauss Con Pivoteo
Gauss Con Pivoteo
h"
#include <iostream>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include <dos.h>
#include <stdio.h>
int main()
{
int i, j, k, n, k1, l, m, opcion;
float a[10][10] = { 0 }, d, det, b[10][10];
system("cls");
cout << "Introduzca la dimesion "; cin >> n;
cout << "Introduzca los coeficientes " << endl;
for (i = 1; i <= n; i++){
for (j = 1; j <= n; j++){
cout << "Introduzca el valor:(" << i << ", " << j << ") ";
cin >> a[i][j];
}
}
/* copiamos */
for (i = 1; i <= n; i++){
for (j = 1; j <= n; j++){
b[i][j] = a[i][j];
}
}
a[i][j] = 1;
";
system("pause");
return 0;
}
";