Answer:
int width_A, width_B, len_A, len_B;
float rw, rl;
rw = (float)(width_A/width_B);
rl = (float)(len_A/len_B);
if(rw == rl)
printf("They are similar");
else
printf("They are not similar");
Step-by-step explanation:
The width of the first triangle i call width_A.
The width of the second triangle i call width_B.
The length of the first triangle i call len_A.
The length of the second triangle i call len_B.
The ratio of the width i call rw.
The ratio of the length i call rl.
If rw=rl, the retangles are similar. Otherwise, they are not.
The code is:
int width_A, width_B, len_A, len_B;
float rw, rl;
rw = (float)(width_A/width_B);
rl = (float)(len_A/len_B);
if(rw == rl)
printf("They are similar");
else
printf("They are not similar");