Write a program to enter numbers in a 2-D array with n rows and m columns and print the sum of the diagonal elements [left and right].
Answers
Answered by
1
Explanation:
Write a program to enter numbers in a 2-D array with n rows and m columns and print the sum of the diagonal elements [left and right].
Answered by
0
Answer:
C Program to find Sum of Diagonal Elements of a Matrix
How to write a C Program to find Sum of Diagonal Elements of a Matrix?. Or, How to write a C program to find Sum of Diagonal Elements of a Multi-Dimensional Array with example.

C Program to find Sum of Diagonal Elements of a Matrix
This program allows the user to enter the number of rows and columns of a Matrix. Next, we are going to calculate the sum of diagonal elements in this matrix using For Loop.
Explanation:
please mark me as brain list
Similar questions