第10题
来源:互联网 发布:s7 200 cad 数据 编辑:程序博客网 时间:2024/05/29 19:31
#include<stdio.h>
#include<math.h>
void main()
{
float a,b,c;
float p,s;
printf("input your floats:\n");
scanf("%f,%f,%f",&a,&b,&c);
if((a<(b+c)&&b<(a+c)&&c<(a+b)))
{ p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%f",s);
}
return ;
}
#include<math.h>
void main()
{
float a,b,c;
float p,s;
printf("input your floats:\n");
scanf("%f,%f,%f",&a,&b,&c);
if((a<(b+c)&&b<(a+c)&&c<(a+b)))
{ p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
printf("%f",s);
}
return ;
}
0 0
- 第1章 第10题
- 第3章 第10题
- 第5章 第10题
- 第5章第10题
- 第10章第1题
- 第10章第2题
- 第10章第3题
- 第10章第4题
- 第10章第5题
- 第10章第6题
- 第10章第7题
- 第10章第8题
- P51第10题
- P51 第10题
- 第一章第10题
- 第10题
- P51第10题
- 第10题
- 在eclipse中,如何查看webservice请求头
- 关于ListView的适配器问题
- 飞思卡尔电磁双车----闭环控制PID ---Double LigHtning
- 为什么用 SQLite 和 FMDB 而不用 Core Data
- 随便聊聊 SOA & SOAP & WebService 的一些东西,以及客户端开发的代码逻辑解析
- 第10题
- Android推送方案分析(MQTT/XMPP/GCM)
- hive(三)--udf与文件压缩归档
- contiki事件驱动
- mysql group by 用法解析(详细)
- DirectX9 观察坐标系
- Android推送方案分析(MQTT/XMPP/GCM)
- jms spring
- android 添加随意拖动的桌面悬浮窗口