public static void Main()
Console.WriteLine("Please enter the initial velocity : ");
string a = Console.ReadLine();
Console.WriteLine("Please enter the traveled time : ");
string b = Console.ReadLine();
double u = Convert.ToDouble(a);
double t = Convert.ToDouble(b);
Console.WriteLine("Please enter the correct time. The traveled time can't be negative value");
double s = (u*t)+(0.5*9.8*t*t);
string str = string.Format("{0:0.00}",s);
Console.WriteLine("The distance traveled is "+str);