The table I am trying to make should:
The first table should include the results of using PHP to calculate the area and circumference of a circle
Additionally, I am trying to make the answers rounded to the first 2 decimals in the floating point number. Any help would be appreciated.
<!DOCTYPE html>
<!--
Author:Randy Gilman
-->
<?php
$cir_area = M_PI * sqrt(2.65)
$cir_circum = 2 * M_PI * 2.65
?>
<html>
<head>
<meta charset="UTF-8">
<title> Randy's Table</title>
</head>
<body>
<table border = "5px">
<tr>
<th> Shape </th>
<th> Parameter and Values </th>
<th> Area </th>
<th> Perimeter </th>
</tr>
<tr>
<th> Circle </th>
<th> radius = 2.65 meters </th>
<th> <?php echo "$cir_area"?> </th>
<th> <?php echo "$cir_circum"?> </th>
</tr>
</table>
</body>
</html>