Write a C algorithm to test whether the three numbers represent the sides of a right angle triangle?

1 answer

Answer

1114382

2026-08-02 11:55

+ Follow

1. sort desc, so a1 >= a2 >= a3

2. check if (a1*a1 == a2*a2 + a3*a3) then true

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.