Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. x=int(input())
  2. y=int(input())
  3. z=int(input())
  4. import math
  5. def ugol(x,y,z):
  6. d1=((y**2+z**2-x**2)/2*y*z)
  7. ugol1=math.degrees(math.acos(d1))
  8. d2=((x**2+z**2-y**2)/2*x*z)
  9. ugol2=math.degrees(math.acos(d2))
  10. d3=((y**2+x**2-z**2)/2*y*x)
  11. ugol3=math.degrees(math.acos(d3))
  12. a=(ugol1,ugol2,ugol3)
  13. return (a)
  14. print(ugol(x,y,z))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement