Sajo
Member
- Joined
- Jul 22, 2020
- Messages
- 17
- Programming Experience
- Beginner
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
Here is code of my matrix
C#:
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]);
}
}
Last edited by a moderator: