Computer Science, asked by aasthamishra19, 3 months ago

Program to find the perimeter of rectangle and square.(Take side of square ;length,breadth of rectangles as input).

Answers

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