Topic: Array Problem / Level: beginner

Problem: Find the trace of a square matrix (sum of diagonal elements).

Run the code to see the output here...