(6) 8 (10)
9 12 15
(12) 16 (20)
what is the difference of diagonal sums
Answers
Answered by
0
Answer:
Input : mat[][] = 11 2 4
4 5 6
10 8 -12
Output : 15
Sum of primary diagonal = 11 + 5 + (-12) = 4.
Sum of primary diagonal = 4 + 5 + 10 = 19.
Difference = |19 - 4| = 15.
Input : mat[][] = 10 2
4 5
Output : 7
Similar questions