answersLogoWhite

0


Best Answer

There are different formulae depending on what is known about the triangle:

  • Base and height,
  • Three sides,
  • Two sides and included angle,
  • Two angles and side,
  • Coordinates of vertices,
  • Plus other variations.

A single algorithm to cover all these will be too complicated.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write algorithm for area of a triangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write an algorithm to calculate the area of a triangle?

Area of any triangle: 0.5*base*perpendicular height


What is algorithm to write algorithm to the program to access a pointer variable in structure?

Here is the algorithm of the algorithm to write an algorithm to access a pointer in a variable. Algorithmically.name_of_the_structure dot name_of_the _field,eg:mystruct.pointerfield


Write a pascal program that compute an area of a triangle?

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.


Write an algorithm to find the root of quadratic equation?

Write an algorithm to find the root of quadratic equation


A Write the algorithm to concatenate two given strings?

a write the algorithm to concatenate two given string


How do you write algorithms for area of right angled triangle in c?

area = base * height / 2;


Write an algorithm to find the area of a rectangleAlgorithmInput length of a rectangleInput width of a rectangleCalculate area using the expression area = length x widthDisplay the area of rectangle?

That's correct!


How do i write an algorithm using pseudocode especially when it concerns salary and net salary?

to find area and perimeter of a rectangle


Write an algorithm to calculate the area of a circle and display the result . Use the formulae A=¶r where ¶ is equal to 3.1416?

10001/999900


How do you write an algorithm and draw a flow chart to find the area of a circle?

start read pie area circum print area print circum stop


Calculute the area of triangle with 10cm and 30degrees at one angle?

Write the question out properly Write the question out properly


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.