using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication13
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入第一边");
int a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第二边");
int b = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入第三边");
int c = Convert.ToInt32(Console.ReadLine());
if (a + b > c && a + c > b && b + c > a)
{
Console.WriteLine("满足构成三角的要求");
if (a == b && b == c)
Console.WriteLine("构成等边三角形");
else
if (a == b || b == c || c == a)
Console.WriteLine("构成等腰三角形");
else
Console.WriteLine("任意三角形和直角三角形");
}
else
Console.WriteLine("输入的三边不可能构成三角形");
Console.ReadLine();
}
}
}