Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This program calculates circumference and area of recktangle#
- ##############################################################
- # Length and width of the recktangle
- a = float(input("Please enter length: "))
- b = float(input("Please enter width: "))
- # Recktangle circumference and area
- circumference = 2 * a + 2 * b
- area = a * b
- result = (circumference, area)
- # Print the result
- print(result)
Add Comment
Please, Sign In to add comment