using System;
public class Program
{
public static void Main()
double[] scores = {43.9, 54.7, 21.3, 56.2}; //create array
double total = 0.0; // initialize value
double average; //create variable to hold average
for (int index = 0; index < scores.Length; index ++) //add elements to the accumulator
total += scores[index];
}
average = total / scores. Length;
Console.WriteLine ("The average is "+ average);