Question #52411

Write a C++ program that takes a NxN 2-dimensional square array of
integers. If the summation of all array elements is odd, the function returns the
summation of the elements in the 2 diagonals of the array, otherwise it returns -1.

Expert's answer

## Comments

## Leave a comment