觉得没有错误,但每次运行总是错误结果,不知道自己错在哪里了,请帮忙指出我的错误,谢谢
scanf("%lf",&x);你少了%号啊
scanf("lf",&x); 改为: scanf("%lf",&x);
printf输出时.2f全部改为.2lf