Click Here to see the problem detail.

Solution

Algorithm:

step1:  Find out the largest arm of the triangle.

Step2: square of largest arm = sum of square of others two arms. If this condition is true then the triangle will be right otherwise wrong.

Source Code

 


Next Previous