Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float a,b,c;
- int main()
- {
- cin>>a>>b>>c;
- if(a+b>c)
- if(a+c>b)
- if(c+b>a)
- {
- if(a*a+b*b==c*c)
- cout<<"triunghiul este dreptunghic";
- else
- if(a*a+b*b>c*c)
- cout<<"triunghiul este ascuțitunghic";
- else
- if(a*a+b*b<c*c)
- cout<<"triunghiul este obtuzunghic";
- }
- else
- cout<<"nu este triunghi";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement