using System;
public class Program
{
public static void Main()
int a=10, b=20;
bytPlats(ref a, ref b);
//Här ska a ha värdet 20 och b värdet 10.
Console.WriteLine(a+" "+b);
}
public static void bytPlats(ref int a, ref int b)
int temp=a;
a = b;
b = temp;