Area of Circle
core/function/area-of-circle/code/src/area-of-circle.php
:
<?php
// A = πr²
function areaOfCircle($radius)
{
// TODO
}
core/function/area-of-circle/code/print/area-of-circle.print.php
:
<?php
require __DIR__ . '/../src/area-of-circle.php';
// Circle Tools
// Area of the circle of radius 1 is of 3.1415926535898
var_dump(areaOfCircle(1));
var_dump(3.1415926535898);
// Area of the circle of radius 10 is of 314.15926535898
var_dump(areaOfCircle(10));
var_dump(314.15926535898);