In this program we will be creating a Python program to Calculate The Area of the Triangle. the side is taken from the user in the float datatype. by using the formula we can get an answer.
Python program to Calculate The Area of Triangle [Source Code]
At first, we have to input the 3 sides of the Triangle to calculate. with using the formula of finding the area triangle then print the area
a = float (input('Enter first side:')) b = float (input('Enter second side:')) c = float (input('Enter Third side:')) s = (a + b + c) / 2 #calculate the area area = (s*(s - a)*(s - a)*(s - c)) ** 0.5 print('The area of triangle is %0.2f ' %aera)
The area of triangle is 14.70
ask me question related the above question on social media