Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all diagonal elements with their sum of squares.

Run the code to see the output here...