public static void Main()
int[,] arr1 = new int[50,50];
int[,] brr1 = new int[50,50];
Console.Write("\nInput the number of rows and columns of the first matrix :\n");
Console.Write("Rows : ");
r = Convert.ToInt32(Console.ReadLine());
Console.Write("Columns : ");
c = Convert.ToInt32(Console.ReadLine());
Console.Write("Input elements in the matrix :\n");
Console.Write("element - [{0}],[{1}] : ",i,j);
arr1[i,j]=Convert.ToInt32(Console.ReadLine());
Console.Write("\nThe First matrix is :\n");
Console.Write("{0}\t",arr1[i,j]);
Console.Write("\n\nThe Transpose of a matrix is : ");
Console.Write("{0}\t",brr1[i,j]);