for x in 1..N {

    y = x+1

    z = y+1

    while z <= N {

        while z * z < x * x + y * y {

            z = z + 1

        }

        if z * z == x * x + y * y and z <= N then {

            // use x, y, z

        }

        y = y + 1

    }
}

Best Regards
Ashish Goel
"Think positive and find fuel in failure"
+919985813081
+919966006652

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to