Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to calculate the sum of elements in each diagonal for an n x n matrix.

Run the code to see the output here...