public static void Main()
Console.WriteLine("Enter the time it took from the jump to landing (T): ");
String inputS = Console.ReadLine();
if (inputS.Contains("?")) {
inputS = inputS.Substring(0, inputS.Length - 1);
float totalTime = float.Parse(inputS);
float maxTime = totalTime / 2;
float initVelocity = - gravity * maxTime;
float maxHeight = maxTime * (initVelocity + gravity * maxTime / 2);
Console.WriteLine("The maximum height reached was " + maxHeight + " meters.");
Console.WriteLine("The initial velocity of the jump was " + initVelocity + " meters per second.");
Console.WriteLine("The time of the peak of the jump was " + maxTime + " seconds in.");
Console.WriteLine("The velocity at the peak of the jump was " + (initVelocity + maxTime * gravity) + " meters per second.");