double x, y; printf("enter x;\n"); scanf("%1f",x); if(x==10) y=1/x; else y=x; printf("f(%0.21f)=%1f\n",x,y); return 0;
收起
scanf 忘记+&符号了
报告相同问题?