static void Swap(ref int a,
public static void Main()
Console.WriteLine("Enter number a: ");
int a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter number b: ");
int b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter number c: ");
int c = Convert.ToInt32(Console.ReadLine());
Console.Write("Value before swapping:\n");
Console.Write("a = " + a + "\n"+ "b = " +
b + "\n" + "c = " + c + "\n");
Swap(ref a, ref b, ref c);
Console.Write("Value after swapping:\n");
Console.Write("a = " + a + "\n"+ "b = " +
b + "\n" + "c = " + c + "\n");