Advertisement
VergeoPaw

1045

Sep 19th, 2021
963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. A,B,C = input().split()
  2. A = float(A)
  3. B = float(B)
  4. C = float(C)
  5. if A >= B + C or B >= A + C or C >= A + B:
  6.     print("NAO FORMA TRIANGULO")
  7. elif A**2 == B**2 + C**2 or B**2 == A**2 + C**2 or C**2 == B**2 + A**2:
  8.     print("TRIANGULO RETANGULO")
  9. elif A**2 > B**2 + C**2 or B**2 > A**2 + C**2 or C**2 > B**2 + A**2:
  10.     print("TRIANGULO OBTUSANGULO")
  11. elif A**2 < B**2 + C**2 or B**2 < A**2 + C**2 or C**2 < B**2 + A**2:
  12.     print("TRIANGULO ACUTANGULO")
  13. if A == B == C :
  14.     print("TRIANGULO EQUILATERO")
  15. elif A == B or B == C or A == C :
  16.     print("TRIANGULO ISOSCELES")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement