Advertisement
kealeydodds

Untitled

Sep 15th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def CalAreaofRectangle (base, height):
  2. return (base * height)
  3.  
  4. def PrintRectangleArea():
  5. base = int(input(input("enter base:"))
  6. height = int(input(input("enter height:"))
  7. area = CalAreaofRectangle (base, height)
  8. return "The area of a rectangle with %d base and %height is %d" % (base, height, area)
  9.  
  10. print (printRectangleArea())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement