Hello frnds.!!! need ur help plzzzz
write a program in python to find area of triangle ????? :(
It's really very urgent plzzz....... :-(
Share
Hello frnds.!!! need ur help plzzzz
write a program in python to find area of triangle ????? :(
It's really very urgent plzzz....... :-(
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
s=(a+b+c)/2
area =√(s(s-a)*(s-b)*(s-c))
do as I did in the first and the second image.. else python would not get executed...
even if ur one step is gone..
redo it.. else u will get syntax error.....
Answer:
# 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
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)