199k views
3 votes
1. Take values of length and breadth of a rectangle from user and check if it is square or not.

1 Answer

5 votes

Answer:

length = float(input("Enter length of rectangle: "))

width = float(input("Enter length of rectangle: "))

if length == width:

print("The dimensions represent a square")

Step-by-step explanation:

I wrote this in Python since you did not specify which language

User David Weinberg
by
3.2k points