a
WAP a menu deciven program to calculate
Area of rectangle = lxb
Perimeter of rectangle = 2(l+b)
Diagonal of rectangle =
Answers
Answered by
201
print("1. Calculate area")
print(" 2. Calculate perimeter")
print ("3. Calculate diagonal")
A= int(input("Enter choice:"))
if A=1. :
Area= length×breadth
print("Area of rectangle=", end=' '))
while A= 2. :
Perimeter= 2(length + breadth))
print("perimeter of rectangle=",end=' '))
else :
Diagonal= √length**2+breadth**2+height**2
print ("enter diagonal=",end=' '))
Similar questions