#include using namespace std; const int NUM_ROWS = 3; const int NUM_COLS = 3; void PrintArray(int[][3]); int main () { int arrNums[NUM_ROWS][NUM_COLS]; int rows; int cols; for (rows = 0; rows < NUM_ROWS; rows++) { for(cols = 0; cols < NUM_COLS; cols++) { cout << "Enter a number: "; cin >> arrNums[rows][cols]; cout << endl; } } PrintArray(arrNums); return 0; } void PrintArray (int arrayOfNums[][3]) { int rows; int cols; for (rows = 0; rows < NUM_ROWS; rows++) { for (cols = 0; cols < NUM_COLS; cols++) { cout << "arrNums [" << rows << "] [" << cols << "] stores " << arrayOfNums[rows][cols] << endl; } } }