Draw the flowchart to calculate area of a triangle.
Answers
Answered by
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.
...
Read a.
Read b.
Read c.
If a, b, c is >0 then; Set s=a+b+c/2. Set area=[s(s-a)(s-b)(s-c)]^1/2.
Write area.
Exit.
Attachments:
Similar questions