Computer Science, asked by hihillooobye, 1 month ago

Wap To Find The Sum Of The Diagonal Elements Of A Given Matrix.

Answers

Answered by unique327
0

The program output is also shown below.

/*

* C program to find accept a matrix of order M x N and find.

* the sum of the main diagonal and off diagonal elements.

#include <stdio.h>

void main ()

{

static int array[10][10];

int i, j, m, n, a = 0, sum = 0;

Answered by sofiaparveen253
0

Answer:

The program output is also shown below.

The program output is also shown below.1. /*

2. * C program to find accept a matrix of orderM

3. x N and find.

4.* the sum of the main diagonal and off diagonal elements.

5.#include <stdio.h>

6.void main ()

7.{static int array[10][10];

8.int i, j, m, n, a = 0, sum = 0;

Similar questions