# Display Lower Triangular Matrix with C

#include <stdio.h> void main() { int array[3][3], i, j, flag = 0 ; printf("\n\t Enter the value of Matrix : "); for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) { scanf("%d", &array[i][j]); } } for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) { if (array[i] < array[j] && array[i][j] == 0) { flag = flag + 1; } } } if (flag == 3) printf("\n\n Matrix is a Lower triangular matrix"); else printf("\n\n Matrix is not a lower triangular matrix"); }

### Share this:

- Click to share on Twitter (Opens in new window)
- Click to share on Facebook (Opens in new window)
- Click to share on Google+ (Opens in new window)
- Click to share on WhatsApp (Opens in new window)
- Click to share on Reddit (Opens in new window)
- Click to share on Tumblr (Opens in new window)
- Click to share on Skype (Opens in new window)
- Click to email this to a friend (Opens in new window)
- Click to share on Pinterest (Opens in new window)
- Click to share on LinkedIn (Opens in new window)
- Click to print (Opens in new window)