This circle has...

A radius of: 52
A diameter of: 104
A circumference of: 326.72563597334
An area of: 8494.8665353068

The AREA is 8494.8665353068 ---

 

CODE FOLLOWS

<?php

    
include("includes/header.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>");

    include(
"includes/footer.php");

?>