Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def CalcAreaofTriangle (base, height):
- return float (0.5 * base * height)
- def PrintTriangleArea():
- base =int(input(input("enter base:"))
- height =int(input(input("enter height:"))
- area =CalcAreaofTriangle (base,height)
- return "The area of a triangle with %d base and %d height is %d" % (base, height, area)
- Print(printTriangleArea())
Add Comment
Please, Sign In to add comment