Anonymous user
Law of cosines - triples: Difference between revisions
→{{header|Java}}
Line 793:
int val = a*a + b*b - a*b;
int c = (int) (Math.sqrt(val) + .5d);
if ( c*c == val ) {
count++;
|