Question: What I would like to learn how to do is to convert an int array to an int in C#.

However I want to append the int with the values from the array.

Example:

```
int[] array = {5, 6, 2, 4};

```

Would be converted into an int that equals 5624.

Thanks for any help in advance.

Answer: 
simply multiply each number with 10^ his place in the array.

```
int[] array = { 5, 6, 2, 4 };
int finalScore = 0;
for (int i = 0; i < array.Length; i++)
{
    finalScore += array[i] * Convert.ToInt32(Math.Pow(10, array.Length-i-1));
}

```
And just for fun...

```
arr.Select((item, index) => new { Item = item, Power = arr.Length - (index - 1) }).ToList().ForEach(item => total += (int)(Math.Pow(10, item.Power) * item.Item));

```