0

Need code in c

In this assignment, you will be given an NxN matrix. You have to determine whether the matrix is a triangular matrix.  The diagonal of the matrix M of size NxN is the set of entries M(0,0), M(1,1), M(2,2), ..., M(N,N).  A matrix is upper triangular if every entry below the diagonal is 0. For example,   1 1 1 0 0 1 0 0 2 is an upper triangular matrix. (The diagonal itself, and the entries above and below the diagonals can be zeroes or non-zero integers.)  A matrix is lower triangular if every entry above the diagonal is 0. For example,  2 0 0 3 1 0 4 2 2 is a lower triangular matrix.  A matrix is triangular if it is either upper triangular or lower triangular or both.   You may not use arrays for this program. Input First, you will be given N, which is the size of the matrix. Then you will be given N rows of integers, where each row consists of N integers separated by spaces.  Output If the input matrix is triangular, then print yes. Otherwise, print no. 

13th Sep 2018, 3:57 PM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
6 ответов
+ 2
I would be glad to help ! what have you done so far ?
13th Sep 2018, 5:03 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
Then try to do something, and then if you are locked, I will help you :)
13th Sep 2018, 5:06 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
nothing
13th Sep 2018, 5:03 PM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
0
I'm beginner but got this assignment questions
13th Sep 2018, 5:04 PM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
0
okay
13th Sep 2018, 5:06 PM
Prabhat kumar chanchal
Prabhat kumar chanchal - avatar
0
Help me solving this
4th Feb 2023, 12:18 PM
Dheekshith Reddy
Dheekshith Reddy - avatar