#include<stdio.h>
int main( )
{
int num,sd,td,hd;
for (num=100;num<=999;++num)
{
sd=num%10;
td=num%100/10;
hd=num/100;
if (num=hd*hd*hd+td*td*td+sd*sd*sd)
{
printf("%d\n",num);
}
}
return 0;
}
td = num / 10 % 10;
if(num == *************)
td 的算式有错误,应该是 td = num/10%10