Matrix

CF

Matrix Transpose

Given a matrix of R rows and C columns as the input, the program must print the transpose of the input matrix. Input Format:The first line…
PythonF

Matrix Diagonal Pattern

Given an integer matrix of size N*N as input, the program must print only the diagonal elements. The remaining elements must be replaced by *…