Write a program to find area of triangle in python
Answers
Answered by
2
Answer:
Here are the some steps that you can use
Explanation:
Python Program to Calculate the Area of a Triangle
# Python Program to find the area of triangle.
# Three sides of the triangle a, b and c are provided by the user.
a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))
# calculate the semi-perimeter.
s = (a + b + c) / 2.
# calculate the area.
Answered by
0
Answer:
#WAP TO CALCULATE AREA OF TRIANGLE
# Three sides of the triangle is a, b and c:
a = float(input('Enter Base: '))
b = float(input('Enter Height: '))
print(a*b*1/2)
Explanation:
a simple way to get it
Similar questions