Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all elements in the main diagonal with the maximum element of their row.

Run the code to see the output here...