> 其他 >
编写函数,已知三角形的三条边长,求三角形的面积
C++函数,
人气:165 ℃ 时间:2020-10-02 06:38:46
解答
#include#includeusing namespace std;int main(){ float a; float b; float c; float s; float p; coutb>>c; p=(a+b+c)/2; s=sqrt(p*(p-a)*(p-b)*(p-c)); cout
推荐
猜你喜欢
© 2025 79432.Com All Rights Reserved.
电脑版|手机版