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