Area is the size of the surface of an object. In this article, we will discuss about the formula and php code in solving for the area of a square.
Formula
a = to the length of the side
PHP Code
Area is the size of the surface of an object. In this article, we will discuss about the formula and php code in solving for the area of a square.
Formula
<?php
$a = 5;
$area = pow($a,2);
echo "The area of the square with the side of $a is $area";
?>Output
0 comments:
Post a Comment