\* C Program to to Print Lower Triangle of 2D Matrix *\
# include < stdio.h >
int main( )
{
int a[10][10], i, j, r, c ;
printf(" Enter the Numbers of Row : ") ;
scanf("%d ", & r) ;
printf(" Enter the Number of Coloumn : ") ;
scanf("%d ", & c) ;
printf("\n Enter the Element of Matrix : \n") ;
for ( i = 0 ; i < r ; i++ )
{
for ( j = 0 ; j < c ; i++ )
{
printf("\n Enter the Element [%d] [%d] : " ,i, j) ;
scanf("%d ", & a[i][j]) ;
}
}
printf("\n Element in the Matrix are : \n") ;
for ( i = 0 ; i < r ; i++ )
{
for ( j = 0 ; j < c ; i++ )
{
printf("\t %d ", a[i][j]) ;
}
printf(" \n ") ;
}
printf("\n Lower Triangle of 2D Matrix : \n") ;
for ( i = 0 ; i < r ; i++ )
{
for ( j = 0 ; j < c ; i++ )
{
if ( i >= j );
printf("\t %d ", a[i][j]) ;
}
printf(" \n ") ;
}
return ( 0 ) ;
}