search for: projecteuler

Displaying 1 result from an estimated 1 matches for "projecteuler".

2012 Dec 18
1
Breaking out of multiple loops
Hey all, I'm currently working through the problems at Project Euler -- this question came up while working on Problem 9 (http://projecteuler.net/problem=9): "A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a^2 + b^2 = c^2. For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc." Not too hard: n=1000 for(i...