Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Calculate the area of a triangle")
- input1 = input("What is the length of the base of the Triangle? ")
- base=int(input1)
- input2 = input("What is the height of the Triangle? ")
- height=int(input2)
- half_base=(base/2)
- units=input("What units of measurement are you using? ")
- area = (half_base * height)
- result=str(area)
- print (" ")
- print ("The area of the triangle is " + result + " Square " + units)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement