Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int a,b,c,temp;
- cin>>a>>b>>c;
- //в порядке возрастания
- if (a>c)
- {
- temp=a;
- a=c;
- c=temp;
- }
- if (a>b)
- {
- temp=b;
- b=a;
- a=temp;
- }
- else if (b>c)
- {
- temp=b;
- b=c;
- c=temp;
- }
- if (c>=(a+b))
- {
- cout<<"impossible";
- }
- else if (c*c==(b*b+a*a))
- {
- cout<<"right";
- }
- else if (c*c>(b*b+a*a))
- {
- cout<<"obtuse";
- }
- else cout<<"acute";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement