Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A,B,C = input().split()
- A = float(A)
- B = float(B)
- C = float(C)
- if A >= B + C or B >= A + C or C >= A + B:
- print("NAO FORMA TRIANGULO")
- elif A**2 == B**2 + C**2 or B**2 == A**2 + C**2 or C**2 == B**2 + A**2:
- print("TRIANGULO RETANGULO")
- elif A**2 > B**2 + C**2 or B**2 > A**2 + C**2 or C**2 > B**2 + A**2:
- print("TRIANGULO OBTUSANGULO")
- elif A**2 < B**2 + C**2 or B**2 < A**2 + C**2 or C**2 < B**2 + A**2:
- print("TRIANGULO ACUTANGULO")
- if A == B == C :
- print("TRIANGULO EQUILATERO")
- elif A == B or B == C or A == C :
- print("TRIANGULO ISOSCELES")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement