Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. h = 0
  5. n = 0
  6. if a + b <= c or a + c <= b or b + c <= a\
  7. or a <= 0 or b <= 0 or c <= 0:
  8. n = 1
  9. print('impossible')
  10. if a < b:
  11. a, b = b, a
  12. if a < c:
  13. a, c = c, a
  14. if n != 1 and a ** 2 == (b ** 2 + c ** 2):
  15. print('rectangular')
  16. elif n != 1 and a ** 2 < (b ** 2 + c ** 2):
  17. print('acute')
  18. elif n != 1 and a ** 2 > (b ** 2 + c ** 2):
  19. print('obtuse')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement