namespace Tema_Silviu_Mariuta_Methods
static void Swap(ref int[] a, ref int[] b)
static void Swap(ref string name, ref string anotherName)
static void Main(string[] args)
Console.WriteLine("Please enter three numbers (nine digits max): ");
for (int i = 0; i < a.Length; i++)
a[i] = int.Parse(Console.ReadLine());
Console.WriteLine("Let's call them: \"Your FIRST numbers\".");
Console.WriteLine("Now please enter four numbers (nine digits max): ");
for (int i = 0; i < b.Length; i++)
b[i] = int.Parse(Console.ReadLine());
Console.WriteLine("Let's call them: \"Your SECOND numbers\".");
Console.WriteLine("Swapping... Swapping... Swapping...");
Console.Write("Now your \"FIRST\" numbers are: ");
foreach (int element in a)
Console.Write(element + " ");
Console.Write("And your \"SECOND\" numbers are: ");
foreach (int element in b)
Console.Write(element + " ");
Console.Write("Please enter a name: ");
string name = Console.ReadLine();
Console.Write("Let's say this is your name.");
Console.Write("Please enter another name: ");
string anotherName = Console.ReadLine();
Console.Write("Let's say this is your middle-name.");
Swap(ref name, ref anotherName);
Console.WriteLine("Swapping... Swapping... Swapping...");
Console.WriteLine($"Now your first name is: {name}.");
Console.WriteLine($"And your middle-name is: {anotherName}.");