单项选择题

下列程序的输出结果是______。
main()
float x=2.0,y;
if(x<0.0)y=0.0;
else if(x<10.0)y=1.0/x;
else y=1.0;
printf("%f\n",y);

A.0.000000
B.0.250000
C.0.500000
D.1.000000