Write a program to accept a two dimensional array with M rows and N columns.
i) Find the sum of the elements.
ii) Find the sum of left diagonal elements.
iii) Find the sum of right diagonal elements.
iv) Find the transpose of the original matrix.
v) Display all the above details along with the original matrix.
Answers
Answered by
1
Look, the operations of sum of left and right diagonal and Transpose are performed only on Square Matrix.
So, You have to take the value of M and N equal.
Then only this program will execute.
If this answer helps, then don't forget to mark it as brainliest.....
Attachments:


Answered by
0
Explanation:
I hope it will helps you
Attachments:


Similar questions