C = γ = 90° = 157 1 rad Height h a = 4 Height h b = 3 Height h c = 24 Given one side of right angle triangle, check if there exists a right angle triangle possible with any other two sides of the triangle If possible print length of the other two sides and all the angles of the triangle Examples Input a = 12 Output Sides are a = 12, b = 35, c = 37 Angles are A = 1246, B = , C = 90 Next simplest triangle is an isoceles right triangle which has area one half the square of any leg, but the hypoteneuse is not rational relative to a leg as the Pyhtagoreans discovered, and so the triangle is not Heronian The simplest example of a Heronian triangle is a right triangle with ratio of sides 345
Right Angled Triangle Definition Properties Formulas