kealeydodds

Untitled

Sep 15th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def CalcAreaofTriangle (base, height):
  2. return float (0.5 * base * height)
  3.  
  4. def PrintTriangleArea():
  5. base =int(input(input("enter base:"))
  6. height =int(input(input("enter height:"))
  7. area =CalcAreaofTriangle (base,height)
  8. return "The area of a triangle with %d base and %d height is %d" % (base, height, area)
  9.  
  10. Print(printTriangleArea())
Add Comment
Please, Sign In to add comment