Monday, January 25, 2016

PHP TRIANGLE AREA: Solve for the Area of a Triangle in PHP

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

A=hb/2 or height * base /2

PHP Code
<?php
$height=10;
$base=20;
$area=$height*$base/2;
echo $area;
?>


PHP TRIANGLE AREA: Solve for the Area of a Triangle in PHP

PHP TRIANGLE AREA: Solve for the Area of a Triangle in PHP Rating: 4.5 Diposkan Oleh: Emoblazz

0 comments:

Post a Comment