Computer Science, asked by narashnath01, 8 months ago

02 Write a program to find
area and perimeter of an triangle.


Answers

Answered by Anonymous
29

Answer:

Suppose ABC is a triangle in which A = 4 cm, B = 5cm and C = 7 cm

Perimeter of a triangle = sum of 3 sides [ A +B + C ]

It is , [ 4 + 5+ 7] cm = 16cm.

Area of a triangle using Heron's formulae =

\bold{Heron's \ Formulae :\sqrt {s*(s-a)*(s-b)*(s-c)})}\\

\sq{ semiperimeter= \frac{16}{2}}

⇒ 8 cm.

\bold{area \of \ triangle\ ABC \ = \ }\sqrt{{8 * (8-4)*(8-5)*(8-7)}

\bold{\sqrt{8*4*3*1} \ cm \ = 96 \ cm }

This is the area of the triangle.

Hope you get how to find area and perimeter of a triangle.☺

Hope this answer can helps you dear..

Similar questions