Computer Science, asked by hussainmdimtiyaz54, 7 months ago

WAP to input the length and breadth and calculate the area and perimeter of a rectangle​

Answers

Answered by imtiyazallam
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