using System.Diagnostics;
public static int InputInt(string prompt)
Console.Write("Enter " + prompt + ":");
return Convert.ToInt32(Console.ReadLine());
public static void Main()
int a = InputInt("length of side a");
int b = InputInt("length of side b");
int c = InputInt("length of side c");
Trace.Assert(a > 0 && b > 0 && c > 0);
if (a + b > c && a + c > b && b + c > a){