Calculate the area of a circle of given radius

Mon Oct 27, 2008 11:47 am

Code:
<?php

$radius
= 2.0;
$pi = 3.14159;
$area = $pi * $radius * $radius;

echo(
"radius = ");
echo(
$radius);
echo(
"<BR>area = ");
echo(
$area);
?>




  Related Posts  to : Calculate the area of a circle of given radius
 compute area of the circle.     -  
 Java- Copy text area into disabled text area     -  
 Drawing circle using circle equation directly , on mouse     -  
 Area clipping     -  
 play a sound when the user enters the area- audio feedback     -  
 Calculate euclidean distances     -  
 Calculate the sum of values in an array     -  
 calculate speed of a car in javaCV     -  
 Calculate process time     -  
 Calculate score of the student     -  

Topic Tags

PHP Graphics