c program to print yes if a matrix is triangular matrix and no if matrix is not triangular without using array
Nptel online course on C programming ?
A square matrix is called lower triangular if all the entries above the main diagonal are zero. Similarly, a square matrix is called upper triangular if all the entries below the main diagonal are zero.(wikki- link text)
For a given matrix square N,
run a loop to check if all the elements above diagonal OR all the elements below diagonal is 0 if any of the above condition is satisfied then it will be a diagonal matrix.
NOTE:- If both the condition is satisfied then it will be a diagonal matrix.
ya nd i didn,t got any mark for this although after compilation it showed passed