#include using namespace std; void nhapMaTran(int n, int m) { int a; ofstream ofs("MATRIX.txt"); ofs<>a; ofs<>n; ifs>>m; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { ifs>>a[i][j]; } } ifs.close(); } void inMaTran(int a[][100], int n, int m) { for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cout<<"\t"<>n; cout<<"Nhap m: "; cin>>m; nhapMaTran(n, m); docMaTran(a, n, m); inMaTran(a, n, m); return 0; }