top of page
Program #002
Calculate Area of Rectangle
# Write a Program to input length and breadth of a rectangle and calculate its area.
length = int(input (“Enter length of the rectangle : “))
breadth = int(input(“Enter breadth of the rectangle : “))
area = length * breadth
print( “RETANGLE DETAILS”)
print(“Length : “, length)
print(“Breadth : “, breadth)
print(“Area : “, area)
# Output
Enter length of the rectangle : 25
Enter breadth of the rectangle : 84
RETANGLE DETAILS
Length : 25
Breadth : 84
Area : 2100
bottom of page