public static void Main()
int[] a = new int[] { 3, 5, 3, 2, 1 };
int[] b = new int[] { 1, 2, 3, 4, 5, 6 };
for (int i = 0; i < a.Length; i++)
int number1 = Convert.ToInt32(string.Join("", a));
int number2 = Convert.ToInt32(string.Join("", b));
Console.WriteLine("Output for first array: \t" + number1);
Console.WriteLine("Output for second array: \t" + number2);