Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Calculate the area of a circle of given radius

Mon Oct 27, 2008 12:47 pm

Code:
<?php

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

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




Post a reply
  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 process time     -  
 Calculate score of the student     -  
 How to Calculate Volume of a Rectangle     -  
 Calculate euclidean distances     -  
 Calculate the sum of values in an array     -  

Topic Tags

PHP Graphics