#include using namespace std; const int n = 10; // We receive the matrix as is (i.e., as a bidimensional array. We // then need to specify all but the first dimension (not general). void display(int m[][n], int size) { for (int i = 0; i < size; i++) { cout << "\n"; for (int j = 0; j < size; j++) cout << m[i][j] << "\t"; } cout << "\n"; } int main () { int mm[n][n]; for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) mm[i][j] = i+j; display(mm,n); }