Find the Area of a Triangle program
Find the Area of a Triangle program

print("\t \t \t \t The Area of a Triangle ")
a = input('\n Enter the first side of the Tirangle = ')
b = input('\n Enter the second side of the Triangle = ')
c = input('\n Enter the third side of the Triangle = ')
s = float(a) / float(2.0) + float(b) / float(2.0) + float(c) / float(2.0) print("\n One side is = ", s)
area = float(float(s)*(float(s)-float(a))*(float(s)-float(b))*(float(s)- float(c))) ** float(0.5)
print('\n The Area of the Triangle is = ', area)
Comments
Post a Comment