Find the transpose of a matrix

Transpose of matrix is the matrix where rows are converted into columns and columns are converted into rows.This program accepts matrix m1 as input and then converts it into transpose matrix.The resultant matrix is saved in m2.Each and every element of the matrix is considered using two for loops.The first for loop considers row of the matrix and second for loop considers column of the matrix.Consider that 2 is stored in first row and second column.So while creating transpose of this matrix, 2 is stored in second row and first column.This principle is applied to each and every element of the matrix while transforming it to transpose matrix.

#include < stdio.h >
#include < conio.h > 
void main()
{
	int m1[10][10],m2[10][10];
	int r,c,i,j;
	clrscr();
	printf("\nEnter r & c : ");
	scanf("%d %d",&r,&c);
	printf("\nEnter first matrix of size %d X %d\n",r,c);
	for(i=0;i< r ; i ++)
	{
		for(j=0;j < c;j++)
		{
			scanf("%d",&m1[i][j]);
		}			
	}
	for(i=0;i < r ; i ++)
	{
		for(j=0;j < c;j++)
		{
			m2[j][i] = m1[i][j];
		}			
	}
	printf("\nthe original matrix is\n");
	for(i=0;i < r;i++)
	{
		for(j=0;j < c;j++)
		{
			printf("%4d",m1[i][j]);
			printf("\n");
		}			
	} // for
	printf("\nThe resultane matrix is\n");
	for(i=0;i< c;i++)
	{
		for(j=0;j < r;j++)
		{
			printf("%4d",m2[i][j]);
		}
		printf("\n");
	} // for
} // main