cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
how can i find all values of z that is e
how can i find all values of z that is equal to (x^2)+(y^2) = z^2
Feb 13, 2014 at 1:12pm UTC
binaryamg
(17)
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 UTC
keskiverto
(10402)
http://en.wikipedia.org/wiki/Pythagorean_triple
Topic archived. No new replies allowed.