Dunque sky...dovrebbe essere cosi:
#include <stdio.h>
main()
{
int number1, number2, number3, x;
x = 0;
for(number1 = 1; number1 <= 500; number1++){
for(number2 = 1; number2 <= 500; number2++){
for(number3 = 1; number3 <= 500; number3++){
if(number1 * number1 + number2 * number2 == number3 * number3){
x++;
}
}
}
}
printf("\n\nLe combinazioni sono: %d", x);
return 0;
}