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
Environmental Sciences,
3 hours ago
English,
6 hours ago
Math,
6 hours ago
Geography,
7 months ago
Math,
7 months ago