Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Python Program to find Area of a Rectangle
- width = float(input('Please Enter the Width of a Rectangle: '))
- height = float(input('Please Enter the Height of a Rectangle: '))
- # calculate the area
- Area = width * height
- # calculate the Perimeter
- Perimeter = 2 * (width + height)
- print("\n Area of a Rectangle is: %.2f" %Area)
- print(" Perimeter of Rectangle is: %.2f" %Perimeter)
Add Comment
Please, Sign In to add comment