Computer Science, asked by blackmind143, 11 months ago

draw a flowchart to calculate the area of a triangle

Answers

Answered by kashyapji45
53

here is your flow chart

Attachments:
Answered by fistshelter
36

The complete question is  to write algorithm and draw flow chart to print area of triangle using hero's formula?

The flowchart has three steps they are input, processing and output.

1) INPUT:-- we need a, b, c (3 variables) as sides of triangle as input.

2) PROCESSING:-- need to calculate area of our triangle.

3) OUTPUT:-- we need to print value of area of triangle.

The algorithm may be as follow:--

1) Read a

2) Read b

3) Read c

4) If a, b, c is >0 then;

Set s=a+b+c/2

Set area=[s(s-a)(s-b)(s-c)]^1/2

5) Write area

6) Exit.

Flow chart of area is given is attachment:--

Attachments:
Similar questions