public static void Main()
double a, b, c, s, area; string units;
Console.WriteLine("The program calculates the area of a scalene triangle using Heron's formula");
Console.Write("Please enter the length of side a: ");
a = int.Parse(Console.ReadLine());
Console.Write("Please enter the length of side b: ");
b = int.Parse(Console.ReadLine());
Console.Write("Please enter the length of side c: ");
c = int.Parse(Console.ReadLine());
if (a == b | a == c | b == c)
Console.WriteLine("All 3 side lengths must be different");
if (a != b & a != c & b != c)
Console.Write("Please enter the units: ");
units = Console.ReadLine();
area = Math.Sqrt((s * (s - a) * (s - b) * (s - c)));
Console.WriteLine("The area is " + area + " " + units + "^2");