In this program, the user will give a 3x3 matrix and we will print it and also find the sum its main diagonal element & display it.
* Given a square matrix mat, return the sum of the matrix diagonals. * Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part ...