public static void Main()
string[] athletes = new string[8];
double[] athTime = new double[8];
while (athleteCount < 4 || athleteCount > 8)
Console.WriteLine("How many athletes are competing (4-8):");
athleteCount = int.Parse(Console.ReadLine());
if (athleteCount < 4 || athleteCount > 8)
Console.WriteLine("Invalid Input. Please enter a number between 4 and 8");
Console.WriteLine("What gender are the competitors");
gender = Console.ReadLine();
for (int c = 0; c < athleteCount; c++)
Console.WriteLine("Please enter the name of the athlete {0}: ", c + 1);
athletes[c] = Console.ReadLine();
Console.WriteLine("You entered {0}", athletes[c]);
Console.WriteLine("Please enter the time for the athlete {0}: ", athletes[c]);
athTime[c] = double.Parse(Console.ReadLine());
Console.WriteLine("You entered {0}", athTime[c]);
Array.Sort(athletes, athTime);
Console.WriteLine("The Athletes Sorted From Fastest to Slowest");
for (int c = 0; c < athleteCount; c++)
Console.WriteLine("Athlete {0}: {1} got a time of {2} seconds", c+1, athletes[c], athTime[c]);
for (int c = 0; c < athleteCount; c++)
if (athTime[c] > fastestTime)
fastestTime = athTime[c];