public static void Main()
Console.WriteLine("enter user input for first array element:-");
n1 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter user input for second array element:-");
n2 = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter the first array element:-");
a1[i]=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("enter the second array element:-");
a2[i]=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("first array element are:-");
Console.WriteLine(a1[i]);
Console.WriteLine("second array element are:-");
Console.WriteLine(a2[i]);
Console.WriteLine("Merging of first and second array element are:-");
for (i = 0,x = n1; x<n3 && i<n2; i++,x++)
Console.WriteLine(a3[i]);
Console.WriteLine("ascending of merging of first and second array element are:-");
Console.WriteLine(a3[i]);