Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. float a,b,c;
  4. int main()
  5. {
  6.  
  7. cin>>a>>b>>c;
  8. if(a+b>c)
  9. if(a+c>b)
  10. if(c+b>a)
  11. {
  12. if(a*a+b*b==c*c)
  13. cout<<"triunghiul este dreptunghic";
  14. else
  15. if(a*a+b*b>c*c)
  16. cout<<"triunghiul este ascuțitunghic";
  17. else
  18. if(a*a+b*b<c*c)
  19. cout<<"triunghiul este obtuzunghic";
  20. }
  21. else
  22. cout<<"nu este triunghi";
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement