I\'m completely new to C# and well I would like simple code to create a matrix from user input
E.G.
int [,] matrix1 = new int [2,2]
// now using inpu
static void Main(string[] args)
{
int[,] matrix1 = new int[2, 2];
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 2; j++)
{
matrix1[i, j] = Int32.Parse(Console.ReadLine());
}
}
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 2; j++)
{
Console.WriteLine("Element({0},{1})={2}", i, j, matrix1[i, j]);
}
}
}