#include <iostream>
using namespace std;
int main()
{
for (int side1=1;side1<= 500;++side1)
{
for (int side2=side1;side2<=500;++side2)
{
for (int c=side2;c<=500;++c)
{
if (side1*side1+side2*side2==c*c)
{
cout<<side1<<"\t"<<side2<<"\t"<<c<<endl;
}
}
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: