#include #include<stdio.h> #include<math.h> void nhap(int a[][100],int n,int m); void xuat(int a[][100],int n,int m); double sum(int a[][100],int n,int m); void nhap(int a[][100],int n,int m) { int i,j; for(i=0;i>a[i][j]; } } void xuat(int a[][100],int n,int m) { int i,j; cout<<"ma tran cua ban la"<<endl; for(i=0;i>n; cout<<"nhap so cot: "; cin>>m; nhap(a,n,m); xuat(a,n,m); cout<<"ket qua la: "<<sum(a,n,m); } double sum(int a[][100],int n,int m) { int i,j; double tong=0; for(i=0;i
Related Documents