public static void Main()
Console.WriteLine(" Verilmish 2 olculu massivin perimetr boyu (yeni qiraq xetleri boyu) elemtleri cemi");
Console.Write("Enter the length of arrays row :{0}", row + "\n");
Console.Write("Enter the length of arrays column :{0}", column + "\n");
int[,] array = new int[row, column];
for (int i = 0; i < row; i++)
for (int j = 0; j < column; j++)
Console.Write("array [" + i + "," + j + "]= ");
array[i, j] = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < row; i++)
for (int j = 0; j < column; j++)
allelements += array[i, j];
for (int i = 1; i < row - 1; i++)
for (int j = 1; j < column - 1; j++)
int vergeelementsum = allelements -indoor ;
Console.WriteLine(vergeelementsum);