hi!
When I try to run the program below, I get the following error:
Illegal use of floating point.
Can anyone tell me what's wrong?!?!
Code:#include <stdio.h> #include <math.h> int main () { float i, x, c; while ( i <=1000) { x = pow(2,i); c= x % i; if ( c == 2) printf ("%f\n",i); i++; } return 0; }