using System;
//Author: [Shubham Singh]
//SID: [1923884]
//Edited: [10th May,2020]
public class Program
{
public static void Main()
// C# program to find mean
// when array is initialized with values
float []a = {3.4f, 6.7f, 8.3f, 9.0f, 2.4f};
//To declare a float variable for the result, initialise it to 0
float result = 0f;
//for the numbers to be sync with arrayLength
int arrayLength = a.Length;
//To create a for loop to iterate over that array
for (int i = 0; i < arrayLength; i++)
result += a[i];
//AM mean formula all divide by highest number (arrayLength)
result = result/arrayLength;
//Output will be 5.96 assured
Console.Write("Arithmetic Mean = " + result + "\n");
}