کسی می تونه یه ماترس با آرایه دو بعدی بنویسه ؟
int[,] A = new int [2,2];
A[0,0] * A[1,1] - A[0,1] * A[1,0]
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Clear();
int[,] A = new int [2,2];
for (int i=0;i<2;i++)
for (int j = 0; j < 2; j++)
{
Console.Write("Please enter A[" + (i + 1) + "," + (j + 1) + "] : ");
A[i, j] = int.Parse(Console.ReadLine());
}
Console.WriteLine ("Determinant A = " + (A[0,0] * A[1,1] - A[0,1] * A[1,0]));
Console.ReadKey(true);
}
}
}