public static void Main()
Console.WriteLine(Math.Sqrt(2,2));
Console.WriteLine("Math Lines");
Console.WriteLine("Point A:");
x1 = Convert.ToDouble( Console.ReadLine());
y1 = Convert.ToDouble( Console.ReadLine());
Console.WriteLine("Point B:");
x2 = Convert.ToDouble( Console.ReadLine());
y2 = Convert.ToDouble( Console.ReadLine());
Console.Write("Slope: ");
Console.WriteLine(Math.Round(slope,2));
length = Math.Sqrt(Math.Pow((x2-x1), 2) + Math.Pow((y2-y1), 2));
Console.Write("Length: ");
Console.WriteLine(Math.Round(length, 2));
xM = Math.Round((x1+x2)/2, 2);
yM = Math.Round((y1+y2)/2, 2);
Console.Write("Midpoint: ");
Console.WriteLine("(" + xM + "," + yM + ")");