using System;
public class Program
{
public static void Main()
int [] myArray = {5,8,10,12};
int total = 0;
foreach(int myInt in myArray)
total = total + myInt;
}
Console.WriteLine("the total is " + total);