using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double a, b, c;
Console.WriteLine("请输入第一条边的长度");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第二条边的长度");
b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第三条边的长度");
c = Convert.ToInt32(Console.ReadLine());
if ((a + b > c) && (b + c > a) && (c + a > b))
{
if (a == b && b != c)
Console.WriteLine("{0}、{1}、{2}这是等腰三角行!", a, b, c);
if ((a * a + b * b == c * c) || (b * b + c * c == a * a) || (c * c + a * a == b * b))
Console.WriteLine("{0}、{1}、{2}这是直角三角");
if (a == b && a == c)
Console.WriteLine("{0}、{1}、{2}这是等边三角行!", a, b, c);
}
Console.Read();
}
}
}