Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def CalAreaofRectangle (base, height):
- return (base * height)
- def PrintRectangleArea():
- base = int(input(input("enter base:"))
- height = int(input(input("enter height:"))
- area = CalAreaofRectangle (base, height)
- return "The area of a rectangle with %d base and %height is %d" % (base, height, area)
- print (printRectangleArea())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement