int[] number = new int[6] { 12, 22, 34, 65, 24, 36 };
int sum = 0;
for (int i = 0; i < number.Length;i++ )
{
sum += number[i];
}
Console.WriteLine(sum);
Console.ReadKey();