编辑代码

#include <stdio.h>
void find()
{
    int ge,shi,bai,qian,wan,s;
    for(int i=10000;i<100000;i++)
    {
    	ge=i%10;
    	shi=i/10%10;
    	bai=i/100%10;
    	qian=i/1000%10;
    	wan=i/10000%10;
    	if(shi==wan&&ge==qian)
    	{
    		s=shi*i;
    		ge=s%10;
    	    shi=s/10%10;
    	    bai=s/100%10;
    	    qian=s/1000%10;
    	    wan=s/10000%10;
    	    if(ge==shi&&shi==bai&&bai==qian&&qian==wan&&s>99999)
    	    {
    	    	printf("该五位数是:");
    	    	printf("%d\n",i);
    	    	printf("六位数结果为:");
    	    	printf("%d\n",s);
			}
		}
	}
}
int main () {
    find();
	return 0;
}