Two polygons are said to be similar if their corresponding angles are the same or if each pair of corresponding sides has the same ratio. Write the code to test if two rectangles are similar when the length and width of each are provided as integer values.
If the rectangles have lengths of 10 and 8, the ratio would be 1.25.
The output needs to display the length ratio, the width ratio, and a message stating if the rectangles are similar or not.

Q&A Education