در صورت مثلث بودن نوع آن را مشخص کند. (متساوی الاضلاع ، متساوی الساقین، قائم الزاویه )



#include <iostream.h>
#include <conio.h>
#include <math.h>


main()
{
    float a,b,c;
    cout << "Enter the size of the triangle side: "<<endl;
    cin>>a>>b>>c;
    if(a<b+c && b<a+c && c<a+b){
            cout<<"Yes, we have triangle."<<endl;
            if(a==b && b==c)
                    cout<<"Motesavi Azla";
            if(a==b || a==c || b==c)
                    cout<<"Motesavi saghein";
            if(a==b && b==c)
                    cout<<"Motesavi Azla";
            if(pow(a,2)==pow(b,2)+pow(c,2) || pow(b,2)==pow(a,2)+pow(c,2)

                                                             || pow(c,2)==pow(a,2)+pow(b,2))
                    cout<<"Gha-em Zavie-ye";
    }
    else
           cout<<"No, we Don't have triangle.";
   
    getch();
}