When I use float, like this:
#include <stdio.h>
int main()
{
float g;
float f;
scanf("%f", &f);
g = f / .5;
printf("%f", g);
return 0;
}
and enter 2 I get back 4.000. When instead in the place of float
I use double
the result is always 0.000. Why is this am I missing something?