And don't play the "I don't have time" game either.
I've just done the renaming in your code, and it took exactly 5 minutes to do - including retesting.
Code:$ ./a.out
Enter the number of columns of matrix 5
Enter the elements of matrix
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 99
Here is your matrix:
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
Transpose of entered matrix :-
1 6 11
2 7 12
3 8 13
4 9 14
5 10 15
The Product Of The Two Matrices Is:
55 130 205
130 330 530
205 530 855