Circle Information
This circle has...
A radius of 5
A diameter of 10
A circumference of 31.415926535898
An area of 78.539816339745
Main part of page code follows:
<?php
include "../includes/header.php";
include "../includes/footer.php";
printheader('Circle Information');
$radius = 5;
$diameter = $radius * 2;
$circumference = M_PI * $diameter;
$area = M_PI * pow( $radius, 2 );
echo('This circle has... <br/>');
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('<br/><br/><br/>Main part of page code follows:<hr/>');
echo(highlight_file(__FILE__));
printfooter('<p> </p>');
?>
1