I'm writing a program that calculates the number of Pythagorean triangles in which no sida is larger than then 500
Specification
Calculate and print the number of Pythagorean triangles
Print version of the triangles Whose hypotenuses IS 100, 200, 300, 400 and 500th
No page in the triangle exceed 500
Each page should be an integer!
It's not allowed to use float at anytime
Assume triangles with pairs of identically catheter, for example, [A = 3, b = 4, c = 5] and [a = 4, b = 3, c = 5], is the same triangle.
|
I don't know how to start.
|