S
Sajo_Nezic
Guest
Hello everybody. I create n x n matrix where I must calculate determinant but I don´t know how. Please can you help me?
Here is code of my matrix
Console.WriteLine("Enter number of rows and columns in your matrix");
int n = int.Parse(Console.ReadLine());
int[,] l = new int[n, n];
Console.WriteLine("Enter numbers of your matrix");
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
l[i,j] = int.Parse(Console.ReadLine());
}
}
Console.WriteLine("Now lets print your matrix");
for(int i = 0; i < n; i++)
{
Console.WriteLine();
for(int j = 0; j < n; j++)
{
Console.Write("{0}\t", l[i, j]);
}
}
Continue reading...
Here is code of my matrix
Console.WriteLine("Enter number of rows and columns in your matrix");
int n = int.Parse(Console.ReadLine());
int[,] l = new int[n, n];
Console.WriteLine("Enter numbers of your matrix");
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
{
l[i,j] = int.Parse(Console.ReadLine());
}
}
Console.WriteLine("Now lets print your matrix");
for(int i = 0; i < n; i++)
{
Console.WriteLine();
for(int j = 0; j < n; j++)
{
Console.Write("{0}\t", l[i, j]);
}
}
Continue reading...