#include <stdio.h>
int main()
{
int num,bw,sw,gw;
for(num = 100 ; num < 1000 ; num++)
bw = num/100;
sw = (num%100)/10;
gw = num%10;
if( bw * bw * bw + sw * sw * sw + gw * gw * gw == num)
printf("水仙花数是%d\n",num);
}
return 0 ;
“==”是“等于”,“=”是“赋值于”
“==”是“等于”,“=”是“赋值于”