public static void Main()
Console.WriteLine("Enter the time it took from the jump to landing (T): ");
float totalTime = float.Parse(Console.ReadLine());
float maxTime = totalTime / 2;
float initVelocity = - (gravity * totalTime * totalTime / 2) / totalTime;
float maxHeight = maxTime * (initVelocity + gravity * maxTime / 2);
Console.WriteLine($"The maximum height reached was {maxHeight} meters");