Answer:
Step-by-step explanation:
Let's do this in Python. We will assume there are 4 user inputs. L1, W1 are the length and width of the first rectangle, respectively. L2, and W2 are the length and width of the 2nd rectangle. We can check if they are similar by comparing their ratios.
def check_similar(L1, W1, L2, W2):
if L1/L2 == W2/W2:
return True
else:
return False