#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 11:31:14
#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0
#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf
#include
main()
{ double a,b,c,d,e;
scantf("lf%lf%lf%",a,b,c);
d=(a+b+c)/3;
printf("d=%lf",d);
e=d*10;
e=d+0.5;
e=(int)d;
e=d/10;
printf("e=%f",e);
}哪里错误了 C++6.0他说运行错误
#include main() { double a,b,c,d,e; scantf("lf%lf%lf%",a,b,c); d=(a+b+c)/3; printf("d=%lf#include main(){ double a,b,c,d,e;scantf("lf%lf%lf%",a,b,c);d=(a+b+c)/3;printf("d=%lf",d);e=d*10;e=d+0.5;e=(int)d;e=d/10;printf("e=%f",e);}哪里错误了 C++6.0
第四行是scanf不是scantf 而且后面还少了取地址符&