+ 2
how i will display both rows on screen?
int x[2][3] = { {2, 3, 4}, // 1st row {8, 9, 10} // 2nd row };
1 Antwort
+ 6
You may use loops of your preference.
The following is an example that you may want to refer to:
int i = 0;
int j = 0;
for (i = 0; i <= 1; i++)
{
for (j= 0; j <= 2; j++)
{
cout << array[i][j];
}
cout << endl;
}