C program Transpose of Matrix

OUTPUT: