题解 2774: 计算三角形面积

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

计算三角形面积--java语言

摘要:解题思路:①根据题目提示,输入x1~y3在内的6个单精度浮点数②了解海伦公式的用法③先根据坐标计算出a,b,c的值,再计算p④最后根据公式计算面积S⑤输出带两位小数的面积注意事项:①导入Scanner……

计算三角形面积

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, float x2, float ……

海伦公式计算三角形面积

摘要:解题思路:注意事项:计算值要设置为double参考代码:#include<stdio.h>#include<math.h>double distance(float x1, float y1, flo……

计算三角形面积

摘要:![](/image_editor_upload/20230722/20230722061633_68262.png) ```c #include #include int main() {……

三角形面积

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){    float x1,x2,x3,y1,y2,y3,d1,d2,d3,s;……

计算三角形面积

摘要:解题思路:运用求两点间距离公式和海伦公式注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double xa,x……

感谢支持(谢谢)

摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){    double xa,ya,xb,yb,xc,yc;    cin>>xa……