Tag:Tainao

  • Diagonal elements of matrix and

    Time:2021-1-18

    Here’s a square matrixmatPlease return the sum of the diagonal elements of the matrix. Please return the sum of the elements on the main diagonal of the matrix and the elements on the sub diagonal and not on the main diagonal. (if the order is odd, the elements of the diagonal intersection will only be […]