Computer Science, asked by ASweety1431, 1 year ago

Hello frnds.!!! need ur help plzzzz

write a program in python to find area of triangle ????? :(

It's really very urgent plzzz....... :-(

Answers

Answered by NidhraNair
19
give values for a b and c
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.....
Attachments:

NidhraNair: thank you sooooooooo sooooooooooooooooooo sooooooooooooooooooo sooooooooooooooooooo sooooooooo sooooooooo sooooooooo sooooooooooooooooooo much
NidhraNair: yep
NidhraNair: thank you;) ☺
bablurai: hii
simmii1431: heyy
simmii1431: nidra di can u help ne plzzz
Answered by sumadevasia
0

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)

Similar questions