Advertisement
ayshan

area of triangle

Apr 3rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. from math import *
  2. s1=float(input())
  3. s2=float(input())
  4. s3=float(input())
  5. s=(s1+s2+s3)/2
  6. sahe=sqrt(s*(s-s1)*(s-s2)*(s-s3))
  7. if s1==s2==s3:
  8. print(sahe)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement