Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all diagonal elements with the average of the elements in their column.

Run the code to see the output here...