+ 1
Find Height of a triangle using its sides
2 odpowiedzi
+ 1
a, b, c = int(input()), int(input()), int(input())
s = (a+b+c)/2
print((s*(s-a)*(s-b)*(s-c))**0.5)
0
One liner
print((lambda a,b,c:(lambda s:(s*(s-a)*(s-b)*(s-c))**0.5)( (a+b+c)/2))( int(input()), int(input()), int(input())))