Math, asked by bhavanavimal1063, 1 year ago

Write an algorithm to find area of a triangle when 3 sides are given

Answers

Answered by Anonymous
45
heya dear!!

at=area of triangle

b=Bredth ,h=height.

Formula=0.5×b×h.

Algorithm:

-Step 1:-Start.

Step 2:-Declare  at,b,has float.

Step 3:-Initialize value of b and h.

Step 4:-Calculate at 0.5×b×h.

Step 5:-print area of triangle .

Step 6:-End.

Make a flowchart with the help of algorithm.

&lt;marquee&gt; Thank Q <br />hope this answer helped u !!<br />plzz pick my answer as the best if u feel this answer helpful<br />&lt;/marquee&gt;
Answered by aquialaska
30

Answer:

Given: E sides of triangle

To write Algorithm to find area of triangle

Step 1:  Mark all given sides as a , b , c

Step 2: Find Semi perimeter of triangle , s

            i.e., s=\frac{a+b+c}{2}

Step 3: Now, just put these value in the following formula,

           Area=\sqrt{s\times(s-a)\times(s-b)\times(s-c)}

This Formula is Heron's Formula.

Similar questions