firstArray.Take(5).Min()
float[] firstArray = { 4, 2, 0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 };
int index = 0
for (int i = 0; i < 5; i++)
{
if (firstArray[i] < firstArray[index])
{
index = i
}
}
min = firstArray[index]