Wednesday , October 26 2016
Home / C / Program to Display Upper Triangular Matrix

Program to Display Upper Triangular Matrix

What is Upper Triangular Matrix?  An upper triangular matrix is a square matrix in which all the elements below the diagonal are zero. We consider a Matrix U with ‘i’ rows and ‘j’ columns, then mathematically we represent the upper triangular matrix as
upper triangular matrix formula

In another word strictly upper triangular matrix is an upper triangular matrix having 0’s along the diagonal as well, i.e., U(ij)=0 for i>=j.




In matrix U, all the element below the main diagonal is zero then we say this matrix as an upper triangular matrix.


  •  Output:

    Output 1:



    Output 2:


  • Output:

    Output 1:


    Output 2:


Also See:   Hide Mouse Pointer C Program

Check Also

Hide Mouse Pointer C Program

Announcement: Know how other students are getting higher education from abroad (US, UK, Germany) and ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.