All pastes #21157 Raw Edit

Someone

public text v1 · immutable
#21157 ·published 2005-08-25 21:23 UTC
rendered paste body
#include <iostream.h>
#include <math.h>

int main()
{
unsigned long int x,y;
unsigned long int Test(0);
for(x=1;x<65535;x++){
        Test=((x*x)+((x+1)*(x+1)));
        for(y=(sqrt(Test)-2);y<(2*x)&&y<(sqrt(Test)+5);y++){
                cout<<"\r"<<x<<" "<<y;
                if (y==sqrt(Test))
                        cout<<endl<<x<<"  "<<x+1<<"  "<<y<<"  "<<Test<<endl;
                }
        }
return 0;
}