C programming algorithm for find sum of lower diagonal element of matrix?
Answers
Answered by
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