Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void ResolveProblem9()
- {
- for(int a = 1; a < 500; a++)
- {
- for(int b = a+1; b < 500; b++)
- {
- double c = Math.sqrt(Math.pow(a, 2.0)+Math.pow(b, 2.0));
- if(a+b+c == 1000)
- {
- int e = (int) (a*b*c);
- System.out.println("Lookup: "+ e);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment