include <stdio.h>int main(){ int i, j; for (i = 10; ;++i){ j = i*i; if (j%10 == j/10%10){ printf ("%d\n", j); } if (j > 999)break; } return 0;}执行结果如下: