Topic: Language Problem / Level: beginner

Problem: Write a program to find the sum of the elements on the main diagonal of a matrix.

Run the code to see the output here...