Computer Science, asked by Sheetalyadav4186, 6 months ago

2.Take values of length and width of a rectangle from user and check if it is square or not.

Answers

Answered by ruthmf007
4

Answer:

a= int(input("enter the length of rectangle"))

b=int(input("enter width of rectangle"))

if a==b:

print("it is a square")

else:

print("it is not a square")

Similar questions