Design an algorithm to solve the problem using pseudocode:
(Area and perimeter of an equilateral triangle) Write a program that displays the area and perimeter of an equilateral triangle that has its three sides as 9.2, using the following formula:
area = 1.732 x (side1)2/4
perimeter = 3 x side1
Start
Declare real side1=9.2
Declare real area
Declare real perimeter
Set area = 1.732 * (side1)*2/4
Set perimeter = 3 * side1
Display "Area: ",area
Display "Perimeter: ",perimeter
Stop
Comments
Leave a comment