1.

How can we input the values into a two-dimensional array?

Answer»

int mat[3][5], row, col;

for (row = 0; row < 3; row++)

for (col = 0; col < 5; col++)

cin >> mat[row] [col];



Discussion

No Comment Found