Computer Science, asked by rizwan2husain, 3 months ago

C programming algorithm for find sum of lower diagonal element of matrix?​

Answers

Answered by samanarizvi144
18

sum = 0;

for (i = 0; i < rows; i++) for (j = 0; j < columns; j++) { // Condition for Lower Triangle.

if (i > j) { sum = sum + a[i][j]; }

} //Print out the Result.

printf("\nSum of Lower Triangle Elements : %d" return (0); }

i hope it's helpful to u.❤

Attachments:
Similar questions