Algorithm and Flowchart for Area of Triangle

[167619 views]




Algorithm to find Area of Right Angle Triangle :

This algorithm is used to find area of a right angle triangle. To Calculate area, we use only the base and height of a triangle.

1. Start 2. Input base, height 3. Calculate area = 1/2*base*height 4. print "Area of Triangle=" area 5. End

Flowchart for Area of Right Angle Triangle:



Remove WaterMark from Above Flowchart

Algorithm to find Area of any Triangle:

This algorithm is used to find area of any triangle. To Calculate area, we use dimensions of all three sides of the triangle.

1. Start 2. Input side1, side2, side3 3. Calculate s = (side1 + side2 + side3) / 2 4. Calculate area = sqrt {s * (s - side1) * (s - side2) * (s - side3)} 5. Print "Area of Triangle=" area 6. End

Flowchart to find Area of any Triangle:

Area of any Triangle 3 side
Remove WaterMark from Above Flowchart
                 



Want to Learn How to write own Algorithm and Flowcharts



Want to test your logical skills in Algorithms?



Comments

5 comment
  • Van

    Best Website for Understanding Algorithms. Loved your Notes

  • Taofeeqoh

    I love ur answering method

  • Saquif

    ???????????????????

  • priti keshri

    Simple algorithm

  • Ayush

    Very good








Search
Have Technical Doubts????


Hot Deals ends in





Join Today to Earn $100 Joining Bonus




Technical Quiz:



Search Tags

    Algorithm for Area of Triangle

    Flowchart to find Area of Triangle

    area of right angle triangle pseudocode