Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all even elements in the matrix with the greatest common divisor (GCD) of their row and column indices.

Run the code to see the output here...