In this python program, we will learn how to calculate the area of the rectangle using length and width.

What is a Rectangle?

A rectangle is a quadrilateral with four right angles. It can also be defined as an equiangular quadrilateral, since equiangular means that all of its angles are equal. It can also be defined as a parallelogram containing a right angle.

Formula

Area of the Rectangle = length * width

Perimeter of the Rectangle = 2 x (length+width)

Here is the source code of the program to calculate the area of the rectangle using length and width.

Python Program to Find the Area of a Rectangle Using Length and Width

# Python Program to Find the Area of a Rectangle Using Length and Width
# Take the input From the User
length = float(input("Enter the Length of a Triangle: "))
width = float(input("Enter the Width of a Triangle: "))
# Calculate the Area
area = length * width
# Print the Output
print("\nThe Area of a Rectangle using", length, "and", width, " = ", area)

## Comments