#include using namespace std; void nhap(int &n) { do { cout<<"Nhap n: "; cin>>n; if (n < 3 || n > 10) cout<<"\nNhap 3 <= n <= 10"; } while (n < 3 || n > 10); } void nhap_ma_tran(int a[][10], int n) { for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { cout<<"Nhap a["<>a[i][j]; } } } void hien_thi(int a[][10], int n) { cout<<"Ma tran A:"< n-1) { det = 0; break; } else { det = -det; for (int j = i; j < n; j++) { int tmp = a[i][j]; a[i][j] = a[k][j]; a[k][j] = tmp; } } } for (int k = i+1; k < n; k++) { float x = -a[k][i]/a[i][i]; for (int j = i; j < n; j++) a[k][j] += x*a[i][j]; } } for (int i = 0; i < n; i++) det *= a[i][i]; cout<<"Dinh thuc cua A = "<