Join Regular Classroom : Visit ClassroomTech

Coding Questions | Math Homework | Codewindow.in

Raja just found out that matrix can be implemented using 2d arrays. He is good at programming. So he tries to develop a program to do his math homework. Help Roshan to write a program to do his math homework.
In his math homework, a square matrix of size N is given. He needs to calculate the absolute difference between the sums of its diagonals. Help Roshan by writing a program.

Example:
Input:
3
11 2 4
4 5 6
10 8 -12

Output:
15

Solution:

Coming....
You Missed
Also Checkout