Computer Science, asked by gracegladwin04, 7 months ago

WRITE PYTHON CODE TO READ LENGTH AND BREADTH AND DISPLAY AREA OF RECTANGLE.

Answers

Answered by DarkCreed
2

Answer:

# 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)

Similar questions