71.8k views
11 votes
Design a program that calculates the area and circumstance of rectangle?​

User Kingbase
by
4.2k points

1 Answer

11 votes
Let “w” and “L” be the width and length of the rectangle. “p” and “a” are perimeter and area
For python,
w=int(input(“width”))
l=int(input(“length”))
a= w*l
p=2*w+2*l
print(str(a), str(p)
User Nantitv
by
4.4k points