Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def area_of_triangle():
- input1=input("Type the height >")
- input2=input("Type the base >")
- h=int(input1)
- b=int(input2)
- area=(b*h)/2
- print("The area of the triangle is "+str(area)) #print area like string
- area_of_triangle() #run the function
Advertisement
Add Comment
Please, Sign In to add comment