logo
Ryan's Webpage
 

<html>
<body>
<script>
//by Ryan Te
//9/28/07
//circle

alert ("This program will calculate the radius and the area of the circle");

var diameter;
var circumference;

diameter = prompt("What is the diameter of the circle?");
diameter = eval(diameter);

var radius;
var pie;

pie = 3.14;
pie = eval(pie)

radius = diameter / 2;
area = pie * radius * radius;

alert ("The radius is " + radius);
alert ("The area is " + area);

</script>
</body>
</html>

 

 

Contact Me

 

Mr. Styner's Webpage

 

Peter

Julie

Nick

Tiddus

Norman