The answer is the same as the last time you asked the question :
'Else if' is not working[
^]
Using the CloseEnough function from before, here is how this could look :
int main()
{
double i,j;
for( i=0; i<=2; i += 0.2 )
{
for( j=1; j <= 3; ++j )
{
if( CloseEnough( i, 0 ) )
{
printf("%3.1f %3.1f\n", i, j+i);
}
else if( CloseEnough( i, 1 ) )
{
printf("%3.1f %3.1f\n", i, j+i);
}
else
{
printf("%3.1f %3.1f\n", i, j+i);
}
}
}
return 0;
}