Matrix with the diagonal set to 0, and the rest of the elements set from 1 to n (in C)

Advertisements Firstly, a number N has to be input, and the matrix is of NxN dimensions then. The diagonal of the matrix has to be all 0, the elements of the matrix above the diagonal have to be from 1 to N diagonally, and the elements under the diagonal need to be filled from -1… Read More Matrix with the diagonal set to 0, and the rest of the elements set from 1 to n (in C)