public static void Main()
Console.WriteLine("How many rows?");
String rows = Console.ReadLine();
bool test = int.TryParse(rows, out r);
Console.WriteLine("Type a number please ");
rows = Console.ReadLine();
test = int.TryParse(rows,out r);
Console.WriteLine("How many columns?");
String cols = Console.ReadLine();
test = int.TryParse(cols, out c);
Console.WriteLine("Type a number please ");
cols = Console.ReadLine();
test = int.TryParse(cols,out c);
int[,] array = new int[r,c];
for(int i = 0; i < array.GetLength(0); i++)
for(int j = 0; j < array.GetLength(1); j++)
Console.Write($"Element[{i},{j}] = ");
String read = Console.ReadLine();
test = int.TryParse(read, out tem);
Console.WriteLine("Type a number please ");
read = Console.ReadLine();
test = int.TryParse(read,out tem);
Console.WriteLine("The Matrix Is ");
for(int i = 0; i < array.GetLength(0); i++)
for(int j = 0; j < array.GetLength(1); j++)
Console.Write(array[i,j] + " " );
Console.WriteLine("The Tranpose Is ");
for(int i = 0; i < array.GetLength(0); i++)
for(int j = 0; j < array.GetLength(1); j++)
Console.Write(array[j,i] + " " );