我想复杂了---我是先排序再用两边之和大于第三边;

------可以直接进行两边之和大于第三边的比较

#include<stdio.h>
int main(){
    int a, b, c, d;
    while (scanf("%d%d%d", &a, &b, &c) != EOF)
    {
        if (a < b)
        {
            d = b; b = a; a = d;
        }
        if (a < c)
        {
            d = c; c = a; a = d;
        }
        if (b < c)
        {
            d = c; c = b; b = d;
        }
        d = b + c;
        if (d > a){
            if (a == b && b == c)
            {
                printf("Equilateral triangle!\n");
            }
            else if ((a == b && b != c) ||(a == c && b != c) || (c == b && b != a))
            {
                printf("Isosceles triangle!\n");
            }
            else 
                printf("Ordinary triangle!\n");
        }
        else 
            printf("Not a triangle!\n");
    }
    return 0;
}