#finding area of triangle a=5 b=6 c=7 s=(a + b + c ) / 2 k=s((s-a)*(s-b)*(s-c)) **0.5 print("area of triangle is :-",k) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

#finding area of triangle a=5 b=6 c=7 s=(a + b + c ) / 2 k=s((s-a)*(s-b)*(s-c)) **0.5 print("area of triangle is :-",k)

Find the error and coorect the code

13th Aug 2019, 5:01 PM
lokesh
lokesh - avatar
1 Answer
+ 1
formular is A = h*b/2 A for area, h is triangle's height and b is base length
13th Aug 2019, 6:13 PM
Mind To Machine ๐Ÿ’ป๐Ÿ•†
Mind To Machine ๐Ÿ’ป๐Ÿ•† - avatar