Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def triangle():
- v = int(input("Enter the height of the triangle: "))
- a = int(input("Enter the length of the base: "))
- P = (a * v) / 2
- print ("The area of a given triangle is: ", P)
- triangle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement