for循环,帮忙看一下哪错了
for(num=100;num<1000;num++) { hd=num/100; td=(num/10)%10; sd=num%100; if(num==hd*hd*hd+td*td*td+sd*sd*sd) { printf('水仙花数:%d\n",num) } return0;
for(num=100;num<1000;num++) { hd=num/100; td=(num/10)%10; sd=num%100; if(num==hd*hd*hd+td*td*td+sd*sd*sd) { printf('水仙花数:%d\n",num) } return0;
2015-11-01
举报