s=sqrt(p* (p-x) * (p-y) * (p-z)); 系统说这个有错误,求解答#include#includeint main(){ double x,y,z,p,s; scanf("%lf,%lf,%lf",&x,&y,&z); p=(x+y+z)/2 s=sqrt(p* (p-x) * (p-y) * (p-z)); printf("s=%f\n", s);}
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/09 05:04:44
s=sqrt(p* (p-x) * (p-y) * (p-z)); 系统说这个有错误,求解答#include#includeint main(){ double x,y,z,p,s; scanf("%lf,%lf,%lf",&x,&y,&z); p=(x+y+z)/2 s=sqrt(p* (p-x) * (p-y) * (p-z)); printf("s=%f\n", s);}
s=sqrt(p* (p-x) * (p-y) * (p-z)); 系统说这个有错误,求解答
#include
#include
int main()
{ double x,y,z,p,s;
scanf("%lf,%lf,%lf",&x,&y,&z);
p=(x+y+z)/2
s=sqrt(p* (p-x) * (p-y) * (p-z));
printf("s=%f\n", s);
}
s=sqrt(p* (p-x) * (p-y) * (p-z)); 系统说这个有错误,求解答#include#includeint main(){ double x,y,z,p,s; scanf("%lf,%lf,%lf",&x,&y,&z); p=(x+y+z)/2 s=sqrt(p* (p-x) * (p-y) * (p-z)); printf("s=%f\n", s);}
#include
#include
int main()
{ double x,y,z,p,s
scanf("%lf,%lf,%lf",&x,&y,&z);
p=(x+y+z)/2;
s=sqrt(p* (p-x) * (p-y) * (p-z));
printf("s=%f\n", s);
}
不会是分号吧