Topic: Matrix Manipulation Problem / Level: beginner

Problem: Write a program to replace all even elements in the matrix with -2 and odd elements with 2.

Run the code to see the output here...