WAP to input the length and breadth and calculate the area and perimeter of a rectangle
Answers
Answered by
7
Answer:
length = int(input("Enter length of the rectangle: "))
breadth = int(input("Enter breadth of the rectangle: "))
area = length * breadth
perimeter = 2 * (length + breadth)
print(area)
print(perimeter)
Attachments:
Similar questions