1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
int main() {
char grid[10][10] = { { '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|',},
{ '|','|','|','|','|','|','|','|','|','|' } };
for (int row = 0; row < 10; row++) {
for (int column = 0; column < 10; column++) {
cout << grid[row][column];
}
cout << endl;
}
system("pause");
return 0;
}
|