Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to extract the diagonal elements from a matrix and store them in an array.

Run the code to see the output here...