Computer Science, asked by godfather7, 7 months ago

write a program in java using bufferedreader to add two symmetric matrices​

Answers

Answered by BlackWizard
1

Answer:

Write a program to declare a square matrix a[][] of order M

× M, where M is a positive integer and represents rows and columns for the matrix. M should be greater than 2 and less than 10. Accept the value of M from the user. Display an appropriate message for an invalid input.

Perform the following tasks:

Display the original matrix.

Check if the given matrix is symmetric or not. If each element in the ith row and jth column is same as element of jth row and ith column, then the matrix is symmetric.

Find the sum of the left and right diagonals of the matrix and display them.

Similar questions