main()
{
int i,a,b,c,m;
for (i=100;i<1000;i++)
for (a=0;a<10;a++)
for (b=0;b<10;b++)
for (c=0;c<10;c++)
{
if (100*a+10*b+c == i)
{
m=i;
printf("\nm=%d",m)
}
}
}
报错
}
报错
#include<stdio.h>
main()
{
int i,a,b,c,m;
for (i=100;i<1000;i++)
for (a=0;a<10;a++)
for (b=0;b<10;b++)
for (c=0;c<10;c++)
{
if (100*a+10*b+c == i)
{
m=i;
printf("\nm=%d",m);
}
}
}
//可以了