[quote=引用 2 楼 tb_youth的回复:]#include <stdio.h> #include <math.h> int main() { double a,b,c,p,S; scanf("%lf%lf%lf",&a,&b,&c); p = (a+ b + c) / 2; S = sqrt(p*(p-a)*(p-b)*(p-c)); printf("%lf\n",S); return 0; }
#include <stdio.h> #include <math.h> int main() { double a,b,c,p,S; scanf("%lf%lf%lf",&a,&b,&c); p = (a+ b + c) / 2; S = sqrt(p*(p-a)*(p-b)*(p-c)); printf("%lf\n",S); return 0; }
69,373
社区成员
243,080
社区内容
加载中
试试用AI创作助手写篇文章吧