C Program to Check for Pythagorean Triplets
“Pythagorean triples” are integer solutions to the Pythagorean Theorem, a^2 + b^2 = c^2. #include #include main() { int s1,s2,hyp,ptriple=0; printf(” Side1 —- side2 —- hypotenusn”); for(s1=0;s1
“Pythagorean triples” are integer solutions to the Pythagorean Theorem, a^2 + b^2 = c^2. #include #include main() { int s1,s2,hyp,ptriple=0; printf(” Side1 —- side2 —- hypotenusn”); for(s1=0;s1
Recent Comments