using System;
public class Program
{
public static void Main()
const int n = 4;
int i, j, f1=1, f2=4, f3=2, f4=3, aux;
int[,] A = { { 1, 1, 2, 2 }, { 1, 1, 2, 2 }, { 3, 3, 4, 4 }, { 3, 3, 4, 4 } };
for (i = 0; i < n; i++)
aux = A[f1 - 1, i];
A[f1 - 1, i] = A[f2 - 1, i];
A[f2 - 1, i] = aux;
A[f3 - 1, i] = A[f4 - 1, i];
A[f4 - 1, i] = aux;
}
for (j = 0; j < n; j++)
Console.Write(A[j, i] + "\t");
Console.WriteLine();
}}