- Category:
- CSharp
- Tags:
-
[Text]
- File Size:
- 1kb
- Update:
- 2013-06-06
- Downloads:
- 0 Times
- Uploaded by:
- 杜乘风
Description: #include <stdio.h>
#include <math.h>
void main()
{
int a,b,c
double p,s
printf("请输入三角形的三边长:")
scanf(" d, d, d",&a,&b,&c)
if ((a+b>c&&a-b<c)==1)
{
p=(a+b+c)/2
s=sqrt(p*(p-a)*(p-b)*(p-c))
}
else
{
printf("三条边不能围成三角形\n")
return 0
}
printf("三角形面积是: f\n",s)
}
To Search:
File list (Check if you may need any files):
说明.txt