Thursday, January 28, 2016

EQUILATERAL TRIANGLE AREA: Solve for the Area of An Equilateral Triangle

Hi there! The following tutorial will introduce you to one of the most common problems encountered in programming subjects. Later on, I will provide set of activities and quizzes for you to practice on to improve your programming skills.

Area solver for shapes is just one of the exercises given by most programming instructors. Some other exercises are the following:

and many more. These are just some of the activities that I posted here in my blog. You can visit the links if you want.

An equilateral triangle is a triangle with three (3) equal sides. The following is the illustration and formula on how to solve for the area of the equilateral triangle.

I also have several PHP and Java codes here related to solving for the area of a square, area of circle, area of a triangle, area of rectangle and area of an ellipse.

Formula area of equilateral triangle

A = Area of the equilateral triangle
a = one side of the triangle

PHP Code area of equilateral triangle

echo "The area of the equilateral triangle with the side of $a is ".number_format($area,3);?>

Output area of equilateral triangle

Try the Equilateral Triangle Solver in PHP Live Here!

Thank you for visiting and hope this helps you. Feel free to leave a comment below for any questions. I got some other articles related to php and mysql here in my blog. Watch out for more upcoming tutorials related to blogging and programming. Good day! ^_^

EQUILATERAL TRIANGLE AREA: Solve for the Area of An Equilateral Triangle

No comments:

Post a Comment