-0.1 0.386718
0.0 0.400000
0.1 0.413278
0.2 0.426212
FILE* fptr;
float arg = 0.0;
float res = 0.0;
fptr = fopen("my.txt", "r");
if(fptr != NULL)
{
while(fscanf(fptr, "%f %f", &arg, &res) != EOF)
{
if(arg == 0.0)
{
printf("f(%.1f) : %f\n", arg, res);
}
}
}
fclose(fptr);