Write an algorithm to calculate area of triangle.
Answers
Answered by
2
Half multiplied by base multiplied by height
Answered by
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
Social Sciences,
5 months ago
Computer Science,
5 months ago
Math,
5 months ago
English,
11 months ago
English,
1 year ago
Math,
1 year ago