An isosceles triangle is a triangle with two (2) equal sides. To be able to solve for the area of an isosceles triangle, you need to used the following formula:
Formula
On the code above, the base is given the value of 5 and 8 for the height of the isosceles triangle.
Output
20
You can also visit other post related to solving for the area of an object. php ellipse area, php square area, php triangle area.
A = area of an isosceles triangle
b = base of the triangle
h = height of the triangle
or you can also used the formula A=1/2 * bh
PHP Code<?php
$base=5;
$height=8;
$area=$base * $height/2;
echo $area;
?>
On the code above, the base is given the value of 5 and 8 for the height of the isosceles triangle.
Output
20
You can also visit other post related to solving for the area of an object. php ellipse area, php square area, php triangle area.
0 comments:
Post a Comment