I wrote a simple program in C, I compiled the solution, I went to get the exe from the Debug folder, moved away and worked perfectly. I give to my friend and requires a DLL (msvcrt.dll or should be something like what he says). Download the dll and leaves. I did the test with three people, one with Windows XP, Windows Vista and one with a Windows 7-all with the same problem. Here's the code:
Code:
# Include <math.h>
int main ()
{
long int x = 5;
long int y;
for (;;)
{
y = (x * x - 1) / 2;
if (y <0) continue;
if ((x * x) == ((y +1) * (y +1) - y * y))
printf ("\ n% d% d% d", x, y, (y +1));
x + = 2;
if (x == 62235) break;
}
return 0;
}
Apart from the code that may be obscene as you like, where am I wrong?
Bookmarks