public static int Traingle(int a, int b, int c)
{
if (a <= 0 || b <= 0 || c <= 0)
{
return 4;
}
int[] array = new int[3] {a,b,c };
Array.Sort(array);
int min, mid, max;
min = array[0];
mid = array[1];
max = array[2];
if (max - mid < min)
{
return 4;
}
if (max == min)
{
return 1;
}
if (min == mid || mid == max)
{
return 2;
}
else return 3;
}