<img src="https://img-blog.csdn.net/20141028215655062?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxNDgwNDg3OQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="" />
#include "stdio.h"
void main()
{int x,FH;
for(x=1;x<10000;x++)
{
FH=x*x;
if((x==(FH%10+FH/10))&&(FH%10!=0)&&(FH%10>0))
{printf("%d\n",x);}
else if((x==(FH%100+FH/100))&&(FH%10<100)&&(FH%100>0))
{printf("%d\n",x);}
else if((x==(FH%1000+FH/1000))&&(FH%10<1000)&&(FH%1000>0))
{printf("%d\n",x);}
else if((x==(FH%10000+FH/10000))&&(FH%10<10000)&&(FH%10000>0))
{printf("%d\n",x);}
}
}