编译没有错,为什么没有结果?求高手指点
#include <stdio.h>#include <stdlib.h>
int main()
{
int a,b,c,d,e,f,g;
int x1,x2,x3,x4,x5,x6,x7;
{
for (a=0;a<=9;a++)
{
for (b=1;b<=9;b++)
{
for (c=1;c<=9;c++)
{
for (d=1;d<=9;d++)
{
for (e=1;e<=9;e++)
{
for (f=1;f<=9;f++)
{
for (g=1;g<=9;e++)
x1=a;
x2=10*b+x1;
x3=100*c+x2;
x4=1000*d+x4;
x5=10000*e+x4;
x6=100000*f+x5;
x7=1000000*g+x7;
if (x1+x2+x3+x4+x5+x6+x7==d*1111111)
if (a!=b&&b!=c)
if (c!=d&&d!=e)
if (e!=f&&f!=g)
printf("a= %d,b= %d,c= %d,d= %d,e= %d,f= %d,g= %d\n",&a,&b,&c,&d,&e,&f,&g);
}
}
}
}
}
}
}
system("pause");
return 0;
}