小白求助水仙花问题
#include <stdio.h>#include <math.h>
int main ()
{
int number,count,result,sum;
printf(" Please import number that you want to use:");
scanf("%d",&number);
while(number>0){
count=number%10;
result=count*count*count;
sum=result+0;
}
if(sum=number)
{
printf("是水仙花数");
}
else
printf("不是水仙花数");
return 0;
}
不能运行,不过没有语法错误