SHARE
TWEET

Untitled

a guest May 23rd, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def areaTriangle(a, b, c):
  2.  
  3.     d = float(a + b + c / 2)
  4.     area = sqrt((d * (d - a) * (d - b) * (d - c)))
  5.  
  6.    
  7.     return area
  8.    
  9. def main():
  10.  
  11.    
  12.    
  13.     a = (input("Length of Side A of the triangle?"))
  14.    
  15.     b = (input("Length of Side B of the triangle?"))
  16.    
  17.     c = (input("Length of Side C of the triangle?"))
  18.  
  19.     print("The area of the triangle is " + str(areaTriangle(a,b, c)) + " .")
  20.  
  21.  
  22. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top