This program finds the absolute difference between the sums of a square matrix’s two diagonals. It loops through the matrix, adds up the primary diagonal (left to right) and the secondary diagonal ...
# Complete the 'diagonalDifference' function below. # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY arr as parameter.