0

To insert and display the element of 5×5 matrix

31st Mar 2017, 8:31 AM
vishal kalbande
vishal kalbande - avatar
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; }
31st Mar 2017, 9:04 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Yes.
31st Mar 2017, 8:42 AM
Seckar
Seckar - avatar
0
program inc++
31st Mar 2017, 8:45 AM
vishal kalbande
vishal kalbande - avatar