Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all diagonal elements with the greatest common divisor (GCD) of their row and column sums.

Run the code to see the output here...