Back
Tong_Tich_Ma_Tran.cpp
Save
// Tong_Tich_Ma_Tran.cpp #include
using namespace std; void nhap(int &x, char name) { do { cout<<"Nhap "<
>x; if (x < 1 || x > 20) cout<<"\nNhap 1 <= "<
20); } void nhap_ma_tran(int a[][20], int m, int n, char name) { for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { cout<
>a[i][j]; } } } void hien_thi(int a[][20], int m, int n) { for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { cout<<"\t"<