//#include <stdafx.h>
#include <iostream>
#include <iomanip>
#include <cmath>
usingnamespace std;
int main ()
{
int A, B, C ; //Sides and the hypotenuse of the triangle
int counter; //Counts how many triples there are
counter = 0;
cout << "\tLIST OF PYTHAGOREAN TRIPLES:\n" << endl;
for (C=1; C <=17; C++)
for (B=1; B <= 8; B++)
for (A=1; A <= 15; A++)
if (A*A + B*B == C*C)
{
cout << setw(10) << A;
cout << setw(12) << B;
cout << setw(12) << C << endl;
counter = counter + 1;
}
return 0;
}