Space for google add

To display Area & Circumference of Circle.

 

Write javascript programme To display Area & Circumference of Circle.

Programme:-

<html>

<body>

<h4><center><font face="Algerian"><u>

Display Area & Circumference of circle.

</h4></center></font></u>

 <script language="javascript">

var A, pi , r

pi =3.14

A=pi * r * r

 r=prompt("Enter radius of circle r","r")

A=(pi*parseFloat(r) *parseFloat(r))

 document.write("Area of circle is ",A )

document.write("<br/>")

 C=(2*pi *parseFloat(r))

document.write("Circumference of circle is",C)

</script>

</body>

</html>

Post a Comment

0 Comments