Sum of 2-D matrix in Java
Output:
Enter the rows and column in a single line leaving space between between them
3 3
Add matrix element leaving space between element in single line row wise
1 2 3
4 5 6
7 8 9
Enter the rows and column in a single line leaving space between between them
3 3
Add matrix element leaving space between element in single line row wise
1 2 3
4 5 6
7 8 9
The sum of Matrix
2 4 6
8 10 12
14 16 18
Comments
Post a Comment