Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all elements of a matrix with the absolute difference between the row and column indices.

Run the code to see the output here...