I am using Code::Block 16.01, the current version, that come with compiler. The problem is when I change xMax to 1.2, the result does not change. It produce the same result as xMax=1.1. Did I do something wrong with my C code? Or is this a compiler problem? Here is my MWE:
#include<stdio.h>
int main()
{
double xMin=1.0;
double xMax=1.1;
double x=xMin;
double h=0.1;
while(x <= xMax)
{
printf("x=%f\n",x);
x=x+h;
}
return 0;
}