// Print the grid int rowCount = 0; int j; for(int i =0; i<2*numRow+1;++i) { if(i&1) { cout<<"| "; for ( j =0; j