Area of a Rectangle

Python program to Find the Area of a Rectangle

In this tutorial, we will see a Python program to find the area of the rectangle. As we know, a simple mathematical formula to find the area of a rectangle.

Area of Rectangle formula

Area of rectangle = Length * Breadth

So, for finding the area of the rectangle, we must know the length and breadth of the rectangle. Therefore we take the length and breadth of the rectangle as input. Then we will find the area by multiplying these values.

Python program to find area of rectangle

Python Program to find the area of a rectangle

print("Enter the length of rectangle")
Length = int(input())
print("Enter the breadth of rectangle")
Breadth = int(input())
Area = Length*Breadth
print("Therefore area of reactangle is :",Area)


Output

Enter the length of rectangle
12
Enter the breadth of rectangle
10
Therefore area of reactangle is : 120

You can also visit: Python Program to check leap year

Discover Our Exciting Courses and Quiz

Enroll now to enhance your skills and knowledge!

Python Online Quiz

Level up your coding skills with our interactive programming quiz!