#include <stdio.h>
int main()
{
int num,a,b,c;
for(a=0,b=0,c=0;num<1000;num++)
a = num/100;
b=num/10%10;
c=num%10;
num == a*a*a+b*b*b+c*c*c;
}
printf("所有水仙花数为%d\n",num);
return 0;
for(num=0;num<1000;num++)
b=num%100/10;
num是三位数,从100开始