// C++ Program to print the elements of a
// Two-Dimensional array
#include<iostream>
using namespace std;
int main()
{
int x[3][3] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
int m2[2][2] = {
{},
{}
};
int mRow = 0;
int mCol = 0;
for (int i = 0; i < 3; i++)
{
// Skip this row.
if (i == 1)
{
i++;
}
for (int j = 0; j < 3; j++)
{
// Skip this column.
if (j == 1)
{
j++;
}
std::cout << x[i][j] << " ";
}
std::cout << std::endl;
}
cin.get();
return 0;
}