看看下面的代码
#include <stdio.h>
int main()
{
int num,sd,td,hd;
for(num=100;num<1000;num++)
{
hd/100;
td/100%10;
sd%10;
if(num==hd*hd*hd+td*td*td+sd*sd*sd);
printf("水仙花数字:%d\n",num);
}
return 0;
}
#include <stdio.h>
int main()
{
int num,sd,td,hd;
for(num=100;num<1000;num++)
{
hd/100;
td/100%10;
sd%10;
if(num==hd*hd*hd+td*td*td+sd*sd*sd);
printf("水仙花数字:%d\n",num);
}
return 0;
}
2021-09-09
#include <stdio.h>
int main()
{
int num,sd,td,hd;
for(num=100;num<1000;num++)
{
hd/100;
td/100%10;
sd%10;
if(num==hd*hd*hd+td*td*td+sd*sd*sd);
printf("水仙花数字:%d\n",num);
}
return 0;
}
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA
JAVA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