Document
This circle has...
A radius of: 1
A diameter of: 2
A circumference of: 6.2831853071796
An area of: 3.1415926535898
The AREA is 3.1415926535898 ---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book Example</title>
<link rel="stylesheet" href="../css/assignmentHeaderStyles.css" />
</head>
<body>
<?php
include ('../header/assignmentHeader.php');
$r = rand(0,100);
$radius = $r;
$diameter = $radius * 2;
$circumference = M_PI * $diameter;
$area = M_PI * pow($radius, 2);
echo('<h1>This circle has...</h1>');
echo("A radius of: $radius <br>");
echo("A diameter of: $diameter <br>");
echo("A circumference of: $circumference <br>");
echo('An area of: ' . $area . '<br>');
echo("<h1>The AREA is $area ---</h1>");
show_source(__file__)
?>
</body>
<?php include('../footer/footer.php')?>
</html>