hi i am a new member of daniweb and i have problem

i wrote a program in c that finds the numbers which are like that

abc...=pow(a,3)+pow(b,3)+pow(c,3)...

there are 5 number like that these are 1,153,370,371,407

but my program doesnt show 371

please look this

```
#include<stdio.h>
#include<math.h>
int
main ()
{
int c,d,k;
double i,b;
for(i=1;i<1000;i++){
k=0;
for(c=5;c>=0;c--){
b=floor(i/pow(10,c));
d=10*(i/pow(10,c)-b);
if(d!=0){k=k+(d*d*d);}
}
if(i==k){printf("i %.0f \n",i);}}
system("pause");
return 0;
}
```

please help me:rolleyes: