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);
Console.Write("The sides cannot create a triangle!");
}else if (a * a + b * b > c * c) {
Console.Write("It is an acute triangle");
}else if (a * a + b * b == c * c) {
Console.Write("It is a right triangle");
Console.Write("It is an obtuse triangle");