0
To insert and display the element of 5Ă5 matrix
3 Answers
+ 15
int matrix[5][5];
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
cin >> matrix[i][j];
}
}
cout << endl;
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 5; j++)
{
cout << matrix[i][j] << " ";
}
cout << endl;
}
+ 1
Yes.
0
program inc++