Write a JavaScript program to calculate area of circle.(3.14*r*r).
CODING:
<! DOCTYPE html>
<html>
<head>
<title>Write s JvaScript to display ADD.,SUB.,MULTI.,DIVED.
</title>
<script type="text/javascript">
{
var r=prompt("Enter The Value OF R.=")
document.write("<h1>", "CALCULATE AREA OF CIRCLE=", 3.14*r*r, "</h1>");
}
</script>
</head>
</html>
CODING:
<! DOCTYPE html>
<html>
<head>
<title>Write s JvaScript to display ADD.,SUB.,MULTI.,DIVED.
</title>
<script type="text/javascript">
{
var r=prompt("Enter The Value OF R.=")
document.write("<h1>", "CALCULATE AREA OF CIRCLE=", 3.14*r*r, "</h1>");
}
</script>
</head>
</html>
Comments
Post a Comment