how can i find all values of z that is equal to (x^2)+(y^2) = z^2

Feb 13, 2014 at 1:12pm
x,y and z are integers and each is lesser than 1000.
how can i find all values of x and y (in the range of[1:1000] )such that it satisfy the equation (x^2)+(y^2) = z^2

for eg:

x=591 y=788 z=985
x=594 y=608 z=850
x=594 y=792 z=990
Feb 13, 2014 at 2:14pm
Topic archived. No new replies allowed.