#include
#include
using namespace std;
int main()
{
int n, m;
cout << "Rows: "; cin >> n;
cout << "Columns: "; cin >> m;
int a[n][m];
int all_sum = 0;
float average;
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
cout << "Element[" << i << "][" << j << "] = "; cin >> a[i][j];
}
}
cout
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
cout
}
cout
}
for(int i = 0; i < n; i++){
for(int j = 0; j < m; j++){
all_sum += a[i][j];
}
average = all_sum / m;
cout
}
system("pause");
}