diagonals

CF

Matrix Diagonals Sum

You are given a square matrix of size N*N.Calculate the sum of integers present in the two main diagonals Example 1: Input:35 10 1179 6 129 21…