#include<stdio.h>
int main()
{
float x=0;
while(x<=.2)
{
printf("%f\n",x);
x=x+0.2;
}
return 0;
}
The output is
0.000000
But it should give..
0.000000
0.200000
I am posting question on stackoverflow for the first time. Please forgive me for my silliness.