Computer Science, asked by bhumikhokhani4910, 11 months ago

Write an algorithm to calculate area of triangle.

Answers

Answered by prarthanakiran
2

Half multiplied by base multiplied by height

Answered by mindfulmaisel
3

Algorithm to calculate area of triangle.

Explanation:

Code : (in python)

b = int (input ("Enter the base of the triangle: "))

h = int (input ("Enter the height of an triangle: "))

area = 0.5 × b × h

print ("The area of triangle: ",area)

Output:

Enter the base of the triangle: 1

Enter the height of the triangle: 1

The area of the triangle: 0.5

ALGORITHM:

1. Start the program

2. Read base and height of the triangle

3. Set area=0.5 × base × height

4. Display the result

5. Stop the program

TO KNOW MORE ABOUT:

1. Write an algorithm to find area of circle

brainly.in/question/2178053

2. Write an algorithm and flowchart to find perimeter of rectangle

brainly.in/question/1627974

Similar questions