'''
14 (Geometry: area of a triangle) Write a program that prompts the user to enter the
three points (x1, y1), (x2, y2), and (x3, y3) of a triangle and displays its area.
The formula for computing the area of a triangle is
area = 2s(s - side1)(s - side2)(s - side3)
s = (side1 + side2 + side3) / 2
Here is a sample run:

Enter three points for a triangle: 1.5,-3.4,4.6,5,9.5,-3.4
The area of the triangle is 33.6
'''

x1,y1,x2,y2,x3,y3 = eval(input("Enter three points for a triangle:"))
side1 = (((x2 - x1)**2) + ((y2 - y1)**2)) ** 0.5
side2 = (((x3 - x2)**2) + ((y3 - y2)**2)) ** 0.5
side3 = (((x3 - x1)**2) + ((y3 - y1)**2)) ** 0.5
s = (side1 + side2 + side3) / 2
area = (s * ((s - side1) * (s - side2) * (s - side3))) ** 0.5
area = int((area * 100)) / 100

print("The area of the triangle is ",area)
