Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def area(a=0, b=0, c=0):
- if a+b > c and abs(a-b) < c:
- s = (a+b+c)/2
- area = ((s*(s-a)*(s-b)*(s-c))**0.5
- return area
- else:
- return -1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement