using System;
using System.Linq;
class Program
{
static int ArrayToNumber(int[] arr) {
return arr.Aggregate((result, x) => result * 10 + x);
}
static void Main() {
int[] arr = { 4, 6, 3, 9, 1, 2 };
int n = ArrayToNumber(arr);
Console.WriteLine("n = " + n);
}
}
/*
run:
n = 463912
*/