(int, int) Swap(int first, int second)
{
int temp = first;
first = second;
second = temp;
return (first, second);
}
int a = 5;
int b = 10;
Console.WriteLine(a);
Console.WriteLine(b);
Swap(a, b);
Console.WriteLine(a);
Console.WriteLine(b);
(int, int) Swap(int first, int second)
{
int temp = first;
first = second;
second = temp;
return (first, second);
}
int a = 5;
int b = 10;
Console.WriteLine(a);
Console.WriteLine(b);
Swap(a, b);
Console.WriteLine(a);
Console.WriteLine(b);