#includemain(){int i,j,a,b,c,d,e,f;for(i=317;i<1000;i++){j=i*i;a=j/100000;b=j/10000%10;c=j/1000%10;d=j%1000/100;e=j%100/10;f=j%10;if(a==f&&b==e&&c==d) printf("%4d %4d\n",i,j);}}
836×836=698896