Program to find the perimeter of rectangle and square.(Take side of square ;length,breadth of rectangles as input).
Answers
Answered by
0
Answer:
question = input("what is the shape? ")
if question == square:
square_side = float(input("what is the side? "))
print(square_side*square_side)
else:
length = float(input("what is the length? "))
breadth = float(input("what is the breadth? "))
print(2*(length+breadth))
Similar questions