#include #include using namespace std; const int NumRows = 3, NumCols = 4; void print(int data[][NumRows][NumCols], int sets); int main() { const int numSets = 2; int array[numSets][NumRows][NumCols] = {{{2,3,5,7},{11,13,17,19},{13,29,31,37}},{{41,43,47,53},{59,61,67,71},{73,79,83,89}}}; print(array,numSets); } void print(int data[][NumRows][NumCols], int numSets) { for (int set = 0; set < numSets; ++set) { for (int row = 0; row < NumRows; ++row) { for (int col = 0; col < NumCols; ++col) { cout << setw(5) << data[set][row][col]; } cout << endl; } cout << endl; // extra blank line after each set } }