大佬求助!!
int main()
{
int num,sd,td,hd;
hd=num/100;
td=num/10%10;
sd=num%10;
for(num==100;num<1000;num++)
{
if (hd*hd*hd+td*td*td+sd*sd*sd=num)
{printf("水仙花数字:%d\n",num);
}
else
printf("\n");
}
return 0;
}
编译没错,可是一运行就变成:Process exited after 0.4256 seconds with return value 0。我是用Dev-C++上写的