Area of rectangle
#program to print the area of a rectangle
#get the lenth of the rectangle
length=int(input("Enter the length of rectangle: "))
#get the width of the rectangle
width=int(input("Enter the width of the rectangle: "))
#calculate the area of the rectangle
area=length*width
#print the area
print("The area of the rectangle is ",area)
Comments
Leave a comment