Computer Science, asked by vandanaparihar2076, 3 days ago

enter the length and breadth of the rectangle and calculate its area and perimeter
python based question

Answers

Answered by bentexdesiguruji2006
1

Answer:

w = float ( input ( 'Please Enter the Width of a Rectangle: ' )) h = float ( input ( 'Please Enter the Height of a Rectangle: ' ))

# calculate the area. Area = w * h.

# calculate the Perimeter. Perimeter = 2 * (w + h)

print ( "\n Area of a Rectangle is: %.2f" % Area) print ( " Perimeter of Rectangle is: %.2f" % Perimeter)

Similar questions