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>
var A, pi , r
pi =3.14
A=pi * r * r
A=(pi*parseFloat(r) *parseFloat(r))
document.write("<br/>")
document.write("Circumference of circle is",C)
</script>
</body>
</html>
0 Comments
If anyone has Doubts or suggestions please let me know