Write a Python program to enter length and breadth of a rectangle and find its area.

PROGRAM

# Python program to calculate the area of a rectangle
# Input: Length and Breadth
length = float(input(“Enter the length of the rectangle: “))
breadth = float(input(“Enter the breadth of the rectangle: “))
# Calculate Area
area = length * breadth
# Output: Area
print(“The area of the rectangle is:”, area)

OUTPUT

TRY THE ABOVE CODE

Leave a Reply

Your email address will not be published. Required fields are marked *

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.