Area of triangle can be calculated as follows:
Area=(1/2) base * height
or using Hero's formula,
Area=sqrt(s(s-a)(s-b)(s-c))
where
a,b,c are lengths of the three sides
s=(a+b+c)/2
Pseudocode to describe how to get the information and output the area of a triangle.
How do integrated development environment(IDE) help to create maintainable code?
Thank you.
1 answer