public static void interchange(ref int num1, ref int num2)
public static void Main()
Console.Write("\nWelcome to Variable Swapping Problem!\n");
Console.Write("firstNumber is the first variable in our program and currently holding the value of: ");
n1= Convert.ToInt32(Console.ReadLine());
Console.Write("secondNumber is the second variable in our program and currently holding the value of: ");
n2= Convert.ToInt32(Console.ReadLine());
interchange( ref n1, ref n2 );
Console.Write("Starting the Swapping Process...\n");
Console.WriteLine( "firstNumber is the first variable in our program and now holding the value of: {0}\nsecondNumber is the second variable in our program and now holding the value of: {1}", n1, n2 );