PROGRAM IN JAVASCRIPT TO FIND THE AREA OF THE CIRCLE USING PROMPT & ALERT METHOD

 <html>

<body>

<SCRIPT LANGUAGE="JAVASCRIPT">

var r=window.prompt("Enter the radius value");

var a=parseInt(r);

var ar=3.1415*a*a;

window.alert("Area of the circle="+ar);

</SCRIPT>

</body>

</html>


No comments:

Post a Comment