hi!
got some problems with inversing numbers. Everytime i compile and run, the floating point variable (inverse) gives a zero. Tried using different compilers and they give the same result. Any ideas?
unsigned int k, x, factorial_x=1, sum=0;
float inverse;
for(k=5; k>=1; k--){
for(x=k; x>=1; x--)
factorial_x *= x;
inverse= 1/factorial_x;
factorial_x = 1;
printf("%f", inverse);
}