using System;
class Program
{
static void Main(string[] args)
{
float[] data = { 1.5f, 0.7f, 8.0f };
float max = Maximum(data);
Console.WriteLine(max);
}
static float Maximum(float[] list)
{
float max = -99999999.00f;
for (int i = 0; i < list.Length; i++)
{
if (i == 0)
{
max = list[i];
}
else
{
max = max < list[i] ? list[i] : max;
}
}
return max;
}
}