摘要: 无难度,海伦公式....#include<stdio.h>#include<math.h>int main(){ double a,b,c,p,Area; while(scanf("%lf%lf%lf",&a,&b,&c)!=EOF) { Area=0; p=(a+b+c)/2; Area=sqrt(p*(p-a)*(p-b)*(p-c)); printf("%.3lf\n",Area); } return 0;} 阅读全文
posted @ 2012-02-13 13:57 我的小花篮 阅读(121) 评论(0) 推荐(0) 编辑