Thursday, December 22, 2011

Write a programming in C or C++?

the Pythagorean theorem states that sum of the squares of the sides of a right triangle is equal to the square of the hypotenuse. For example ,if two side of right triangle have lengths of 3 and 4 then the hypotenuse must have a length of 5 . together the integers 3,4 and 5 from a Pythagorean triple .there are an infinite number of such triple Given two positive intogers m,and n, where m>napythagorean triple can be generated by the following formulas

0 comments:

Post a Comment