using System;
public class Program
{
public static void Main()
int a = 5;
int b = 3;
Console.WriteLine("Valores de a y b antes de funcion: {0}, {1}", a,b);
Cambiar(ref a, ref b);
Console.WriteLine("Valores de a y b despues de funcion: {0}, {1}", a,b);
}
static void Cambiar(ref int x, ref int y){
int temp = 0 ;
temp = x;
x = y;
y = temp;