This is a simple code to solve for the area of a triangle in php. Area is the surface of an object. The formula is
PHP Code
<?php
$height=10;
$base=20;
$area=$height*$base/2;
echo $area;
?>
This is a simple code to solve for the area of a triangle in php. Area is the surface of an object. The formula is
<?php
$height=10;
$base=20;
$area=$height*$base/2;
echo $area;
?>
0 comments:
Post a Comment