Wednesday, January 27, 2016

PHP SQUARE AREA: Solve for the Area of a Square

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
<?php
  $a = 5;
  $area = pow($a,2);
  echo "The area of the square with the side of $a is $area";
?>


Output


PHP SQUARE AREA: Solve for the Area of a Square

PHP SQUARE AREA: Solve for the Area of a Square Rating: 4.5 Diposkan Oleh: Emoblazz

0 comments:

Post a Comment