Ŀ

գҪıйص䡣
һ repeat (0<repeat<10)repeat㣺
 x㲢зֶκf(x)ֵ(3λС)
 x  0 ʱy = f(x) = 1/x x  0 ʱy = f(x) = 0
ʾ˵

2	(repeat=2)
10
0

f(10.00) = 0.100
f(0.00) = 0.000



#include <stdio.h>
int main(void)
{
    int repeat, ri;
    double x, y;  

    scanf("%d", &repeat);
    for(ri = 1; ri <= repeat; ri++){
        scanf("%lf", &x);	
/*---------*/
        printf("f(%.2f) = %.3f\n", x, y);
    }
}
