public static void Main()
Console.WriteLine("Input the number of elements for the array");
while(!Int32.TryParse(Console.ReadLine(), out amount));
int[] array = new int[amount];
for(int i = 0; i < amount; i++)
Console.WriteLine($"element - {i} : ");
Int32.TryParse(Console.ReadLine(), out array[i]);
Console.WriteLine("Input the number of elements for the second array");
while(!Int32.TryParse(Console.ReadLine(), out amount));
int[] array2 = new int[amount];
for(int i = 0; i < amount; i++)
Console.WriteLine($"element - {i} : ");
Int32.TryParse(Console.ReadLine(), out array2[i]);
int combined = array.Length + array2.Length;
int[] array3 = new int[combined];
Console.WriteLine("The merged array in ascending order is:");
array2.CopyTo(array3, array.Length);
foreach(int element in array3)
Console.Write(element + " ");