解题思路:
注意事项:
参考代码:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define s(a,b,c) ((a)+(b)+(c))/2
#define area(a,b,c,s) sqrt(s*(s-a)*(s-b)*(s-c))
int main()
{
double a,b,c;
scanf("%lf%lf%lf",&a,&b,&c);
printf("%.3lf",area(a,b,c,s(a,b,c)));
return 0;
}
0.0分
0 人评分
A+B for Input-Output Practice (VII) (C语言代码)浏览:545 |
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:615 |
Tom数 (C语言代码)浏览:730 |
陈教主的三角形 (C语言代码)浏览:1162 |
永远的丰碑 (C语言代码)浏览:538 |
图形输出 (C语言代码)浏览:963 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:613 |
C语言训练-列出最简真分数序列* (C语言代码)浏览:612 |
拆分位数 (C语言代码)浏览:446 |
1199题解浏览:660 |