import math
#海伦公式
a,b,c = map(int, input().split( ))
p = (a+b+c) / 2
if a+b>c and a+c>b and b+c>a:
s = math.sqrt(p*(p-a)*(p-b)*(p-c))
print (round(s,2))
else:
print('不能构成三角形')
python每日一练:输入三个数a,b,c判断能否以它们为三个边长构成三角形,如果能求出面积
于 2022-11-18 21:05:41 首次发布